[PyQt] generic exception handler

Steve Borho steve at borho.org
Thu Aug 19 18:53:34 BST 2010

On Thu, Aug 19, 2010 at 12:50 PM, Sybren A. Stüvel <sybren at stuvel.eu> wrote:
> On Thu, Aug 19, 2010 at 12:31:36PM -0500, Steve Borho wrote:
>> Sorry, I was too quick to dismiss.  This does get called when any
>> unhandled exception occurs, which is what I need.
> Be aware that sys.excepthook is called from the thread that causes the
> exception. I streamlined this by emitting a Qt signal from the
> exception handler, and showing a dialog box from a connected slot in
> the GUI thread.

That would explain the crash I see when I first tried to use it.
Excellent, thanks.

Steve Borho

More information about the PyQt mailing list