From: Jack Jansen Date: Wed, 27 Feb 2002 22:48:37 +0000 (+0000) Subject: Backport of 1.25: X-Git-Tag: v2.2.1c1~147 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a063f2569d06258e9077f830a76c19dc6de5384f;p=thirdparty%2FPython%2Fcpython.git Backport of 1.25: Ugh, by all means, _do_ report exceptions somehow ;-) --- diff --git a/Mac/Modules/ae/aesupport.py b/Mac/Modules/ae/aesupport.py index c12e5b6f5714..216185794eca 100644 --- a/Mac/Modules/ae/aesupport.py +++ b/Mac/Modules/ae/aesupport.py @@ -148,8 +148,11 @@ GenericEventHandler(const AppleEvent *request, AppleEvent *reply, refcontype ref replyObject->ob_itself.descriptorType = 'null'; replyObject->ob_itself.dataHandle = NULL; Py_DECREF(args); - if (res == NULL) + if (res == NULL) { + PySys_WriteStderr("Exception in AE event handler function\\n"); + PyErr_Print(); return -1; + } Py_DECREF(res); return noErr; }