From: Jack Jansen Date: Sun, 24 Feb 2002 22:57:48 +0000 (+0000) Subject: Backport of 1.9: X-Git-Tag: v2.2.1c1~176 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c8363d7e0177b57b95d874662fa3e60750dacc28;p=thirdparty%2FPython%2Fcpython.git Backport of 1.9: Ugh, by all means, _do_ report exceptions somehow ;-) --- diff --git a/Mac/Modules/ae/_AEmodule.c b/Mac/Modules/ae/_AEmodule.c index 4304d959e4ac..4db840e75fa7 100644 --- a/Mac/Modules/ae/_AEmodule.c +++ b/Mac/Modules/ae/_AEmodule.c @@ -1242,8 +1242,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; }