[pywin32-checkins] pywin32/com/win32com/client __init__.py,1.33,1.34
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2005-05-24 14:30:14
|
Update of /cvsroot/pywin32/pywin32/com/win32com/client In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25170 Modified Files: __init__.py Log Message: In some cases, GetTypeInfo will return an AttributeError. Index: __init__.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/__init__.py,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** __init__.py 4 Mar 2005 23:49:56 -0000 1.33 --- __init__.py 24 May 2005 14:30:04 -0000 1.34 *************** *** 30,34 **** if typeinfo is not None: # Some objects return NULL, some raise exceptions... resultCLSID = str(typeinfo.GetTypeAttr()[0]) ! except pythoncom.com_error: pass if resultCLSID is not None: --- 30,34 ---- if typeinfo is not None: # Some objects return NULL, some raise exceptions... resultCLSID = str(typeinfo.GetTypeAttr()[0]) ! except (pythoncom.com_error, AttributeError): pass if resultCLSID is not None: |