cathing uncaught exceptions

Rafe rafesacks at
Tue Aug 19 19:39:44 CEST 2008

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

Any chance you might have missed the word "raise", e.g.

except Exception, err:


except Exception, err:
    raise Exception(err)

This is from the list of stupid things I have done myself,

- Rafe

More information about the Python-list mailing list