[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Catching python exceptions
From: Paul Giannaros <ceruleanblaze () gmail ! com>
Date: 2007-03-22 21:59:22
Message-ID: 200703222159.23400.ceruleanblaze () gmail ! com
[Download RAW message or body]
On Thursday 22 March 2007 21:47, Luper Rouch wrote:
> Hi,
>
> What is the proper way to add a global exceptions catcher to a
> QApplication, for example to bring a bug report dialog when an exception
> reaches the main event loop ?
> I guess I have to make my own event loop but my attempts failed
> miserably, any pointers to an example ?
No, it's not that complicated. Just set sys.excepthook, which is a function
that is called for any unhandled exceptions. Google for it.
>
> Thanks,
> Luper Rouch
>
>
> _______________________________________________
> PyQt mailing list PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic