[PyQt] Catching exceptions everywhere

Jeremy Sanders jeremy at jeremysanders.net
Thu May 7 12:17:54 BST 2009

Is there a way to catch Python exceptions in all parts of a PyQt program?

I have a "report bug" dialog box which gets called if an exception occurs in 
the most frequently used parts of my program, but it would be nice if I 
could catch every unhandled exception globally.

The really nice thing about python is that program tends to keep running 
despite an exception in a slot, so we don't get immediate data loss.




More information about the PyQt mailing list