On Thu, Aug 19, 2010 at 12:14 PM, Steve Borho <[email protected]> wrote: > On Thu, Aug 19, 2010 at 11:16 AM, Jeremy Sanders > <[email protected]> wrote: >> Steve Borho wrote: >> >>> Is there a way to register a generic exception handler with PyQt to >>> catch errors that happen in signal handlers? I use a Python library >>> that emits 3-4 exceptions somewhat randomly for some fairly common >>> error conditions, and it would be nice to handle them all in one >>> place. >> >> You probably want sys.excepthook - see >> http://svn.gna.org/viewcvs/veusz/trunk/veusz_main.py?rev=1141&view=markup >> for an example of catching exceptions to bring up a dialog. > > Thanks, that looks interesting, but I meant PyQt signal handlers not > the POSIX variety.
Sorry, I was too quick to dismiss. This does get called when any unhandled exception occurs, which is what I need. -- Steve Borho _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
