We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41da8be commit 37875ddCopy full SHA for 37875dd
1 file changed
com/win32com/client/gencache.py
@@ -626,7 +626,7 @@ def EnsureDispatch(
626
): # New fn, so we default the new demand feature to on!
627
"""Given a COM prog_id, return an object that is using makepy support, building if necessary"""
628
disp = win32com.client.Dispatch(prog_id)
629
- if not disp.__dict__.get("CLSID"): # Eeek - no makepy support - try and build it.
+ if not hasattr(disp, "CLSID"): # Eeek - no makepy support - try and build it.
630
try:
631
ti = disp._oleobj_.GetTypeInfo()
632
disp_clsid = ti.GetTypeAttr()[0]
0 commit comments