Fixed the problems with the exception form. Not sure how to test it though...

This commit is contained in:
Raoul Snyman 2013-10-30 22:34:23 +02:00
parent 6a839dc32a
commit d09747a33a
2 changed files with 3 additions and 2 deletions

View File

@ -184,7 +184,8 @@ class OpenLP(QtGui.QApplication):
``traceback``
A traceback object with the details of where the exception occurred.
"""
log.exception(''.join(format_exception(exctype, value, traceback)))
# We can't log.exception here because the last exception no longer exists, we're actually busy handling it.
log.critical(''.join(format_exception(exctype, value, traceback)))
if not hasattr(self, 'exception_form'):
self.exception_form = ExceptionForm()
self.exception_form.exception_text_edit.setPlainText(''.join(format_exception(exctype, value, traceback)))

View File

@ -101,7 +101,7 @@ class ExceptionForm(QtGui.QDialog, Ui_ExceptionDialog):
"""
Constructor.
"""
super(ExceptionForm, self).__init__(self.main_window)
super(ExceptionForm, self).__init__()
self.setupUi(self)
self.settings_section = 'crashreport'