From 501379ee09c3510d1737d6292a2dd5732c19dfef Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Tue, 2 Jan 2018 23:53:57 +0100 Subject: [refactor] webengine entrypoint this commit deprecates qtwebkit usage. --- src/leap/bitmask/gui/housekeeping.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/leap/bitmask/gui/housekeeping.py') diff --git a/src/leap/bitmask/gui/housekeeping.py b/src/leap/bitmask/gui/housekeeping.py index 3202f5e6..7069adba 100644 --- a/src/leap/bitmask/gui/housekeeping.py +++ b/src/leap/bitmask/gui/housekeeping.py @@ -1,7 +1,13 @@ import os +import signal +import time from leap.common.config import get_path_prefix + +class NoAuthTokenError(Exception): + pass + def get_authenticated_url(): url = "http://localhost:7070" path = os.path.join(get_path_prefix(), 'leap', 'authtoken') @@ -12,7 +18,7 @@ def get_authenticated_url(): # because touching the token file is one of the first # things the backend does, and this BrowserWindow # should be called *right after* launching the backend. - raise NoAuthToken( + raise NoAuthTokenError( 'No authentication token found!') time.sleep(0.1) waiting -= 1 -- cgit v1.2.3