[PyQt] Handling the uncaught exceptions

2008-01-25 Thread Sundance
Hi Peter, Is there a way to handle the uncaught exceptions that happen in PyQt? Yup: install your own exception handler in sys.excepthook. You'll find a somewhat fancy exception handler I wrote a while back as the handle_exception() function (starting line 146) in this file:

RE: [PyQt] Handling the uncaught exceptions

2008-01-25 Thread Peter Shinners
Sundance: Is there a way to handle the uncaught exceptions that happen in PyQt? Yup: install your own exception handler in sys.excepthook. Cool, this is working. I had assumed there was something more complicated than this when running under PyQt.

[PyQt] Handling the uncaught exceptions

2008-01-24 Thread Peter Shinners
Is there a way to handle the uncaught exceptions that happen in PyQt? Usually Pyqt just prints the exception and traceback when returning from python handlers. I know Python has a global uncaught exception handler, but my first guess would be that PyQt is not using that?