diff options
author | Kali Kaneko <kali@leap.se> | 2017-08-29 01:46:39 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-08-30 16:18:58 -0400 |
commit | 899e3a3f0905fd90bafaa4f5652cd885831677de (patch) | |
tree | 66b7513a893b0228f09f4c51d6ea5a59635a11ca /src/leap/bitmask | |
parent | 7cdb807f2ceb8be757ecf14acc60beef4fc9b699 (diff) |
[bug] add initial ts assignment
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r-- | src/leap/bitmask/vpn/management.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |