cathing uncaught exceptions

Alexandru Mosoi brtzsnr at gmail.com
Tue Aug 19 04:35:14 EDT 2008


On Aug 18, 6:02 pm, Alexandru  Mosoi <brtz... at gmail.com> wrote:
> 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.

I found that normally sys.excepthook is invoked for uncaught
exceptions. however in my case the function is not invoked (as it
should normaly do). i printed the stackframe and checked that there is
no try/catch block that handles the exception. any other idea?



More information about the Python-list mailing list