[PyKDE] Exceptions

Pete Ware ware at cis.ohio-state.edu
Fri Apr 7 00:44:37 BST 2000


Phil Thompson <phil at river-bank.demon.co.uk> writes:

> What exactly do you want to see happen?

Well, the "cleanest" seems to be:

while 1:
        try :
                app.exec_loop()
        except X:
                report some warning/suggest bug report
        except KeyboardInterrupt:
                sys.exit (1)

I put quotes around "cleanest" because that means by default every
python error causes the application to quit -- which can be quite
mysterious in a window'd environment.

Mostly, I'd be satisified if I could just popup a window to show
the stacktrace.

--pete




More information about the PyQt mailing list