Fixed the problems with the exception form

bzr-revno: 2309
This commit is contained in:
Raoul Snyman 2013-10-31 21:29:07 +00:00 committed by Tim Bentley
commit f0af04a9f2
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'