[issue1230540] sys.excepthook doesn't work in threads

Antoine Pitrou report at bugs.python.org
Sat May 25 13:22:48 EDT 2019


Antoine Pitrou <pitrou at free.fr> added the comment:

A Thread.excepthook() method does not allow to notify exceptions raised in C-created threads ("dummy threads").

Also, as I said already, you can get the current thread by calling threading.current_thread() in the except hook. There is no need to pass it explicitly to the except hook.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue1230540>
_______________________________________


More information about the Python-bugs-list mailing list