From 899e3a3f0905fd90bafaa4f5652cd885831677de Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Tue, 29 Aug 2017 01:46:39 -0400 Subject: [bug] add initial ts assignment --- src/leap/bitmask/vpn/management.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/leap/bitmask/vpn/management.py b/src/leap/bitmask/vpn/management.py index 4f0e97b..0665169 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 -- cgit v1.2.3