cathing uncaught exceptions

Gabriel Genellina gagsl-py2 at
Tue Aug 19 07:18:02 CEST 2008

En Mon, 18 Aug 2008 12:02:29 -0300, Alexandru Mosoi <brtzsnr at> 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, it is printed on sys.stderr (sys.excepthook isn't involved); see the module for details.
Maybe you had a bare try/except that did nothing? or maybe you redirected sys.stderr?

Gabriel Genellina

More information about the Python-list mailing list