Dont report exceptions in error handler.

This commit is contained in:
Kovid Goyal 2007-11-12 04:20:03 +00:00
parent 5e19ae43e1
commit 4b822e533c

View File

@ -24,6 +24,7 @@ class MainWindow(QMainWindow):
QMainWindow.__init__(self, parent)
def unhandled_exception(self, type, value, tb):
try:
sio = StringIO.StringIO()
traceback.print_exception(type, value, tb, file=sio)
fe = sio.getvalue()
@ -32,3 +33,5 @@ class MainWindow(QMainWindow):
msg += '<p>Detailed <b>traceback</b>:<pre>'+fe+'</pre>'
d = ConversionErrorDialog(self, 'ERROR: Unhandled exception', msg)
d.exec_()
except:
pass