diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-02-24 22:57:48 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-02-24 22:57:48 (GMT) |
commit | c8363d7e0177b57b95d874662fa3e60750dacc28 (patch) | |
tree | 898cc728e7c1b1faeb517eef53c5b8193c3fb99f /Mac | |
parent | fe48a915962ad2f3c6068e72718efcb5eda4a832 (diff) | |
download | cpython-c8363d7e0177b57b95d874662fa3e60750dacc28.zip cpython-c8363d7e0177b57b95d874662fa3e60750dacc28.tar.gz cpython-c8363d7e0177b57b95d874662fa3e60750dacc28.tar.bz2 |
Backport of 1.9:
Ugh, by all means, _do_ report exceptions somehow ;-)
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/Modules/ae/_AEmodule.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Mac/Modules/ae/_AEmodule.c b/Mac/Modules/ae/_AEmodule.c index 4304d95..4db840e 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; } |