cathing uncaught exceptions

Rafe rafesacks at gmail.com
Tue Aug 19 19:39:44 CEST 2008


On Aug 18, 10: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.

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

except Exception, err:
    Exception(err)

vs.

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