]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport of 1.25:
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 27 Feb 2002 22:48:37 +0000 (22:48 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 27 Feb 2002 22:48:37 +0000 (22:48 +0000)
Ugh, by all means, _do_ report exceptions somehow ;-)

Mac/Modules/ae/aesupport.py

index c12e5b6f571451602bbd70d7603317e13113e29e..216185794ecae888b09a6f0325021c313e3f8ae0 100644 (file)
@@ -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;
 }