Update of /cvsroot/pywin32/pywin32/com/win32com/src/extensions
In directory sc8-pr-cvs1:/tmp/cvs-serv23931
Modified Files:
PyICreateTypeInfo.cpp
Log Message:
Don't leave an exception pending.
Index: PyICreateTypeInfo.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/extensions/PyICreateTypeInfo.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** PyICreateTypeInfo.cpp 26 Nov 1999 04:00:28 -0000 1.3
--- PyICreateTypeInfo.cpp 7 Aug 2003 22:42:41 -0000 1.4
***************
*** 351,354 ****
--- 351,355 ----
return NULL;
}
+ PyErr_Clear(); // clear the exception set by PyWinObject_AsBstr
if (!PySequence_Check(obrgszNames)) {
PyErr_SetString(PyExc_TypeError, "The names param must be a sequence of strings/unicodes");
|