summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/_management.py
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2017-02-01 17:29:22 +0100
committerKali Kaneko (leap communications) <kali@leap.se>2017-02-23 00:40:34 +0100
commit9551ff71ce976f04e98f1c19c667bc5f9f402ae9 (patch)
treefe0319627f3394f0d4da5f5a0cbc63b37ee539f4 /src/leap/bitmask/vpn/_management.py
parentb509a5f353f706fab31189b352d6ffa24bd1c3e5 (diff)
[bug] fix parsing of vpn status
Diffstat (limited to 'src/leap/bitmask/vpn/_management.py')
-rw-r--r--src/leap/bitmask/vpn/_management.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/leap/bitmask/vpn/_management.py b/src/leap/bitmask/vpn/_management.py
index 9ae90118..920bd9d1 100644
--- a/src/leap/bitmask/vpn/_management.py
+++ b/src/leap/bitmask/vpn/_management.py
@@ -241,7 +241,10 @@ class VPNManagement(object):
parts = stripped.split(",")
if len(parts) < 5:
continue
- ts, status_step, ok, ip, remote = parts
+ try:
+ ts, status_step, ok, ip, remote, port, _, _, _ = parts
+ except ValueError:
+ ts, status_step, ok, ip, remote, port, _, _ = parts
state = status_step
if state != self._last_state: