diff options
Diffstat (limited to 'src/leap/bitmask/gui/app2.py')
-rw-r--r-- | src/leap/bitmask/gui/app2.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/leap/bitmask/gui/app2.py b/src/leap/bitmask/gui/app2.py index 649d5deb..3e83b435 100644 --- a/src/leap/bitmask/gui/app2.py +++ b/src/leap/bitmask/gui/app2.py @@ -45,6 +45,7 @@ from leap.common.config import get_path_prefix from leap.bitmask.gui.systray import WithTrayIcon from leap.bitmask.gui.housekeeping import cleanup, terminate, reset_authtoken from leap.bitmask.gui.housekeeping import get_authenticated_url +from leap.bitmask.gui.housekeeping import NoAuthTokenError DEBUG = os.environ.get("DEBUG", False) @@ -151,7 +152,7 @@ def launch_gui(): systray.closeFromSystray() sys.exit(qApp.exec_()) - except NoAuthToken as e: + except NoAuthTokenError as e: print('ERROR: ' + e.message) sys.exit(1) @@ -180,9 +181,5 @@ def start_app(): launch_gui() -class NoAuthToken(Exception): - pass - - if __name__ == "__main__": start_app() |