diff options
Diffstat (limited to 'src/leap/bitmask/gui/housekeeping.py')
-rw-r--r-- | src/leap/bitmask/gui/housekeeping.py | 8 |
1 files changed, 7 insertions, 1 deletions
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 |