summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/service.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-08-14 20:43:56 -0400
committerKali Kaneko <kali@leap.se>2017-08-15 16:51:47 -0400
commit8ebd7753c8e91bd1db032220fd0c5295947d64f0 (patch)
tree661d65996ed6dcec7487a72ef6c0d0ac769024d0 /src/leap/bitmask/vpn/service.py
parentabf688c7d643b89a1001a9f7c7ff24a4a3dab42c (diff)
[bug] fix attribute error when vpn is not started
Diffstat (limited to 'src/leap/bitmask/vpn/service.py')
-rw-r--r--src/leap/bitmask/vpn/service.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/leap/bitmask/vpn/service.py b/src/leap/bitmask/vpn/service.py
index 7cd595a0..704bbc71 100644
--- a/src/leap/bitmask/vpn/service.py
+++ b/src/leap/bitmask/vpn/service.py
@@ -124,9 +124,7 @@ class VPNService(HookableService):
self.log.error("Firewall: error stopping")
if not self._tunnel:
- # XXX this avoids to shutdown anything that was in process.
- # or self._tunnel.status['status'] is not 'on':
- raise Exception('VPN was not running')
+ return {'result': 'VPN was not running'}
vpn_ok = self._tunnel.stop()
if not vpn_ok: