summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/core
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-06-29 13:06:19 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2017-07-14 14:29:40 +0200
commitb5470367a74fb09fb30dc56fe6a22254fe25d18e (patch)
tree98e571ba0e71dcd52a9b19ef1f8131f6ef94f611 /src/leap/bitmask/core
parenta20fe33472698c5c95df799eeaf3a1c0f415e4d5 (diff)
[bug] don't raise exceptions stoping the VPN service
Let's also catch the exceptions raised by stopping services so bitmaskd can stop.
Diffstat (limited to 'src/leap/bitmask/core')
-rw-r--r--src/leap/bitmask/core/service.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/leap/bitmask/core/service.py b/src/leap/bitmask/core/service.py
index 2da1ee4c..6244b17e 100644
--- a/src/leap/bitmask/core/service.py
+++ b/src/leap/bitmask/core/service.py
@@ -246,7 +246,10 @@ class BitmaskBackend(configurable.ConfigurableService):
def do_stop(self):
for service in self:
- service.stopService()
+ try:
+ service.stopService()
+ except Exception as e:
+ log.error('Error stopping service... {0!r}'.format(e))
return self.core_commands.do_stop()
# Service Toggling