Commit 3e584aaa authored by Just van Rossum's avatar Just van Rossum

Ugh, by all means, _do_ report exceptions somehow ;-)

parent 0cae01c4
......@@ -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;
}
......
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment