summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/gui/housekeeping.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2018-01-02 23:53:57 +0100
committerKali Kaneko <kali@leap.se>2018-01-06 19:57:55 +0100
commit501379ee09c3510d1737d6292a2dd5732c19dfef (patch)
tree231f16778e10f12d9514126a8a121e938289f880 /src/leap/bitmask/gui/housekeeping.py
parenteb431c28a9e7df0cc8c2a701b9d0f053739dcbb4 (diff)
[refactor] webengine entrypoint
this commit deprecates qtwebkit usage.
Diffstat (limited to 'src/leap/bitmask/gui/housekeeping.py')
-rw-r--r--src/leap/bitmask/gui/housekeeping.py8
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