Commit 89033fe4 authored by Denis Bilenko's avatar Denis Bilenko

add traceback.print_exc() instead of silenting an exception

parent 027c5a4a
...@@ -138,7 +138,7 @@ cdef void __event_handler(int fd, short evtype, void *arg) with gil: ...@@ -138,7 +138,7 @@ cdef void __event_handler(int fd, short evtype, void *arg) with gil:
try: try:
sys.stderr.write('Failed to execute callback for %s\n\n' % (ev, )) sys.stderr.write('Failed to execute callback for %s\n\n' % (ev, ))
except: except:
pass traceback.print_exc()
finally: finally:
if not event_pending(&ev.ev, EV_READ|EV_WRITE|EV_SIGNAL|EV_TIMEOUT, NULL): if not event_pending(&ev.ev, EV_READ|EV_WRITE|EV_SIGNAL|EV_TIMEOUT, NULL):
Py_DECREF(ev) Py_DECREF(ev)
...@@ -318,7 +318,7 @@ cdef void __simple_handler(int fd, short evtype, void *arg) with gil: ...@@ -318,7 +318,7 @@ cdef void __simple_handler(int fd, short evtype, void *arg) with gil:
try: try:
sys.stderr.write('Failed to execute callback for %s\n\n' % (ev, )) sys.stderr.write('Failed to execute callback for %s\n\n' % (ev, ))
except: except:
pass traceback.print_exc()
finally: finally:
if not event_pending(&ev.ev, EV_READ|EV_WRITE|EV_SIGNAL|EV_TIMEOUT, NULL): if not event_pending(&ev.ev, EV_READ|EV_WRITE|EV_SIGNAL|EV_TIMEOUT, NULL):
Py_DECREF(ev) Py_DECREF(ev)
......
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