[Python-checkins] CVS: python/dist/src/Mac/Modules/ae aesupport.py,1.24,1.24.14.1

Jack Jansen jackjansen@users.sourceforge.net
Wed, 27 Feb 2002 14:48:39 -0800


Update of /cvsroot/python/python/dist/src/Mac/Modules/ae
In directory usw-pr-cvs1:/tmp/cvs-serv27653

Modified Files:
      Tag: release22-maint
	aesupport.py 
Log Message:
Backport of 1.25:
Ugh, by all means, _do_ report exceptions somehow ;-)



Index: aesupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/ae/aesupport.py,v
retrieving revision 1.24
retrieving revision 1.24.14.1
diff -C2 -d -r1.24 -r1.24.14.1
*** aesupport.py	1 Sep 2001 23:38:50 -0000	1.24
--- aesupport.py	27 Feb 2002 22:48:37 -0000	1.24.14.1
***************
*** 149,154 ****
  	replyObject->ob_itself.dataHandle = NULL;
  	Py_DECREF(args);
! 	if (res == NULL)
  		return -1;
  	Py_DECREF(res);
  	return noErr;
--- 149,157 ----
  	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;