summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2013-08-12 17:00:28 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2013-08-12 17:01:50 -0300
commit7bf7d66fbd80d28a1f97f61960d1af653ba6fe91 (patch)
tree9ba5360b19fcf875a47018bbf53b9786ef80595e
parent3dd2680563e2f7477889052862c05908e0b7864b (diff)
Exit function if there is no handler to use.
-rw-r--r--src/leap/bitmask/gui/mainwindow.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/leap/bitmask/gui/mainwindow.py b/src/leap/bitmask/gui/mainwindow.py
index 486bebf7..46def802 100644
--- a/src/leap/bitmask/gui/mainwindow.py
+++ b/src/leap/bitmask/gui/mainwindow.py
@@ -380,6 +380,7 @@ class MainWindow(QtGui.QMainWindow):
leap_log_handler = self._get_leap_logging_handler()
if leap_log_handler is None:
logger.error('Leap logger handler not found')
+ return
else:
self._logger_window = LoggerWindow(handler=leap_log_handler)
self._logger_window.setVisible(