From c8363d7e0177b57b95d874662fa3e60750dacc28 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Sun, 24 Feb 2002 22:57:48 +0000 Subject: [PATCH] Backport of 1.9: Ugh, by all means, _do_ report exceptions somehow ;-) --- Mac/Modules/ae/_AEmodule.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.47.3