cathing uncaught exceptions
gagsl-py2 at yahoo.com.ar
Tue Aug 19 07:18:02 CEST 2008
En Mon, 18 Aug 2008 12:02:29 -0300, Alexandru Mosoi <brtzsnr at gmail.com> escribió:
> how can I catch (globally) exception that were not caught in a try/
> catch block in any running thread? i had this weird case that an
> exception was raised in one thread, but nothing was displayed/logged.
Each thread should handle its own exceptions. If any exception escapes from Threading.run(), it is printed on sys.stderr (sys.excepthook isn't involved); see the threading.py module for details.
Maybe you had a bare try/except that did nothing? or maybe you redirected sys.stderr?
More information about the Python-list