forked from openlp/openlp
always log the exception
This commit is contained in:
parent
dfa2eb1afe
commit
7feab25c3f
@ -184,9 +184,7 @@ class OpenLP(QtGui.QApplication):
|
|||||||
``traceback``
|
``traceback``
|
||||||
A traceback object with the details of where the exception occurred.
|
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)))
|
||||||
log.exception(''.join(format_exception(exctype, value, traceback)))
|
|
||||||
return
|
|
||||||
if not hasattr(self, u'exception_form'):
|
if not hasattr(self, u'exception_form'):
|
||||||
self.exception_form = ExceptionForm(self.main_window)
|
self.exception_form = ExceptionForm(self.main_window)
|
||||||
self.exception_form.exceptionTextEdit.setPlainText(''.join(format_exception(exctype, value, traceback)))
|
self.exception_form.exceptionTextEdit.setPlainText(''.join(format_exception(exctype, value, traceback)))
|
||||||
|
Loading…
Reference in New Issue
Block a user