mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Ugh, by all means, _do_ report exceptions somehow ;-)
This commit is contained in:
parent
0cae01c496
commit
3e584aaa2a
2 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue