summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2017-04-17 18:08:02 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2017-04-19 20:14:25 +0200
commit1065b3d467cfb662f9b392c0886734368d93aba6 (patch)
tree8e89e4ff6fa4462e867de6e51626b0d2f5120a64
parent69009f804c351cf63d9ff8ef06817bf5c026c263 (diff)
[bug] remove previous auth token
- Resolves: #8823
-rw-r--r--src/leap/bitmask/gui/app.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/leap/bitmask/gui/app.py b/src/leap/bitmask/gui/app.py
index 005ddabf..78bb43d6 100644
--- a/src/leap/bitmask/gui/app.py
+++ b/src/leap/bitmask/gui/app.py
@@ -48,7 +48,6 @@ else:
from PyQt5 import QtWebKit
from PyQt5.QtCore import QSize
from PyQt5.QtCore import QObject, pyqtSlot
- from PyQt5.QtWidgets import QDialog
from PyQt5.QtWidgets import QApplication
from PyQt5.QtWebKitWidgets import QWebView
from PyQt5.QtWebKit import QWebSettings
@@ -223,6 +222,13 @@ def start_app():
if STANDALONE and len(sys.argv) > MIN_ARGS:
from leap.bitmask.cli import bitmask_cli
return bitmask_cli.main()
+
+ prev_auth = os.path.join(get_path_prefix(), 'leap', 'authtoken')
+ try:
+ os.remove(prev_auth)
+ except OSError:
+ pass
+
launch_gui()