PyErr_Print() when catching exceptions in callbacks

This commit is contained in:
Evan Klitzke 2010-01-25 19:26:24 -08:00
parent 5bfa1dc607
commit 98520b448b
1 changed files with 1 additions and 0 deletions

View File

@ -345,6 +345,7 @@ static void __libevent_ev_callback(int fd, short events, void *arg) {
int r = PyThreadState_SetAsyncExc(ts->thread_id, EventErrorObject);
printf("%d\n", r);
*/
PyErr_Print();
PyErr_WriteUnraisable(ev->callback);
}