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

Mac/Modules/ae/_AEmodule.c

index 4304d959e4acbce0e89060e899f8a8f100ca3063..4db840e75fa7ada5e094f6465253b2b1ee9fd033 100644 (file)
@@ -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;
 }