From 7feab25c3f8615e970d3de85375d1a080e39e712 Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Thu, 28 Feb 2013 15:43:14 +0100 Subject: [PATCH] always log the exception --- openlp/core/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openlp/core/__init__.py b/openlp/core/__init__.py index adc4a250d..d1112ab5c 100644 --- a/openlp/core/__init__.py +++ b/openlp/core/__init__.py @@ -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)))