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:
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.
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?