[issue37076] _thread.start_new_thread(): call sys.unraisablehook() to handle uncaught exceptions
STINNER Victor
report at bugs.python.org
Tue May 28 12:44:03 EDT 2019
STINNER Victor <vstinner at redhat.com> added the comment:
Output:
---
Unhandled exception in thread started by <function worker at 0x7fae27f212d0>
<_DummyThread(Dummy-1, started daemon 140385971111680)>
---
Ah right, sys.excepthook is called! But "Unhandled exception in thread started by <function worker at 0x7fae27f212d0>" line is always written into stderr, it cannot be avoided :-( And sys.excepthook doesn't provide access to the thread function which caused the issue.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37076>
_______________________________________
More information about the Python-bugs-list
mailing list