PyErr_Print() when catching exceptions in callbacks
This commit is contained in:
parent
5bfa1dc607
commit
98520b448b
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue