summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/autostart.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask/vpn/autostart.py')
-rw-r--r--src/leap/bitmask/vpn/autostart.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/leap/bitmask/vpn/autostart.py b/src/leap/bitmask/vpn/autostart.py
index 43abfdf5..af7b3669 100644
--- a/src/leap/bitmask/vpn/autostart.py
+++ b/src/leap/bitmask/vpn/autostart.py
@@ -34,7 +34,10 @@ Terminal=false
with open(autostart_file, 'w') as f:
f.write(AUTOSTART)
elif status == 'off':
- os.unlink(autostart_file)
+ try:
+ os.unlink(autostart_file)
+ except OSError:
+ pass
if IS_MAC: