summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/leap/bitmask/vpn/management.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/bitmask/vpn/management.py b/src/leap/bitmask/vpn/management.py
index 4f0e97b8..0665169b 100644
--- a/src/leap/bitmask/vpn/management.py
+++ b/src/leap/bitmask/vpn/management.py
@@ -149,12 +149,16 @@ class ManagementProtocol(LineReceiver):
data = data.strip().split(',')
remote = rport = None
state = ''
+ ts = None
try:
if len(data) == 9:
(ts, state, verbose, localtun,
remote, rport, laddr, lport, ip6) = data
elif len(data) == 8:
ts, state = data[:2]
+ else:
+ raise ValueError(
+ 'Cannot parse state data! %s' % data)
except Exception as exc:
log.error('Failure parsing data: %s' % exc)
return