diff options
author | Just van Rossum <just@letterror.com> | 2002-01-04 13:49:36 (GMT) |
---|---|---|
committer | Just van Rossum <just@letterror.com> | 2002-01-04 13:49:36 (GMT) |
commit | 3e584aaa2aa66e1dc19764e5cc8ee48afb0801a6 (patch) | |
tree | a40d6848112b0e11e1fb77db3bea55f342b81b3c /Mac/Modules | |
parent | 0cae01c49638c95fcff200aa92a3e7d580a9bb3e (diff) | |
download | cpython-3e584aaa2aa66e1dc19764e5cc8ee48afb0801a6.zip cpython-3e584aaa2aa66e1dc19764e5cc8ee48afb0801a6.tar.gz cpython-3e584aaa2aa66e1dc19764e5cc8ee48afb0801a6.tar.bz2 |
Ugh, by all means, _do_ report exceptions somehow ;-)
Diffstat (limited to 'Mac/Modules')
-rw-r--r-- | Mac/Modules/ae/_AEmodule.c | 5 | ||||
-rw-r--r-- | Mac/Modules/ae/aesupport.py | 5 |
2 files changed, 8 insertions, 2 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; } diff --git a/Mac/Modules/ae/aesupport.py b/Mac/Modules/ae/aesupport.py index c12e5b6..2161857 100644 --- a/Mac/Modules/ae/aesupport.py +++ b/Mac/Modules/ae/aesupport.py @@ -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; } |