[Python-checkins] CVS: python/dist/src/Mac/Modules/ae _AEmodule.c,1.8,1.8.4.1
Jack Jansen
jackjansen@users.sourceforge.net
2002年2月24日 14:57:50 -0800
Update of /cvsroot/python/python/dist/src/Mac/Modules/ae
In directory usw-pr-cvs1:/tmp/cvs-serv20420
Modified Files:
Tag: release22-maint
_AEmodule.c
Log Message:
Backport of 1.9:
Ugh, by all means, _do_ report exceptions somehow ;-)
Index: _AEmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/ae/_AEmodule.c,v
retrieving revision 1.8
retrieving revision 1.8.4.1
diff -C2 -d -r1.8 -r1.8.4.1
*** _AEmodule.c 17 Dec 2001 11:47:20 -0000 1.8
--- _AEmodule.c 24 Feb 2002 22:57:48 -0000 1.8.4.1
***************
*** 1243,1248 ****
replyObject->ob_itself.dataHandle = NULL;
Py_DECREF(args);
! if (res == NULL)
return -1;
Py_DECREF(res);
return noErr;
--- 1243,1251 ----
replyObject->ob_itself.dataHandle = NULL;
Py_DECREF(args);
! if (res == NULL) {
! PySys_WriteStderr("Exception in AE event handler function\n");
! PyErr_Print();
return -1;
+ }
Py_DECREF(res);
return noErr;