[PyQt] generic exception handler

Sybren A. Stüvel sybren at stuvel.eu
Thu Aug 19 18:50:56 BST 2010


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.

Cheers,
-- 
Sybren Stüvel

http://stuvel.eu/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100819/5b476de9/attachment.pgp>


More information about the PyQt mailing list