always log the exception

This commit is contained in:
Andreas Preikschat 2013-02-28 15:43:14 +01:00
parent dfa2eb1afe
commit 7feab25c3f

View File

@ -184,9 +184,7 @@ class OpenLP(QtGui.QApplication):
``traceback``
A traceback object with the details of where the exception occurred.
"""
if not hasattr(self, u'main_window'):
log.exception(''.join(format_exception(exctype, value, traceback)))
return
log.exception(''.join(format_exception(exctype, value, traceback)))
if not hasattr(self, u'exception_form'):
self.exception_form = ExceptionForm(self.main_window)
self.exception_form.exceptionTextEdit.setPlainText(''.join(format_exception(exctype, value, traceback)))