diff options
author | Kali Kaneko <kali@leap.se> | 2018-01-02 23:53:57 +0100 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2018-01-06 19:57:55 +0100 |
commit | 501379ee09c3510d1737d6292a2dd5732c19dfef (patch) | |
tree | 231f16778e10f12d9514126a8a121e938289f880 /src/leap/bitmask/gui/app2.py | |
parent | eb431c28a9e7df0cc8c2a701b9d0f053739dcbb4 (diff) |
[refactor] webengine entrypoint
this commit deprecates qtwebkit usage.
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() |