Don't try to remove openvpn-needed file if it does not exist.

parent 57345c74
......@@ -581,7 +581,7 @@ def prepare_from_scratch(config):
if config.force_vpn:
# Force use of openvpn
open(openvpn_needed_file_path, 'w')
else:
elif os.path.exists(openvpn_needed_file_path):
# Forbid use of openvpn if not explicitely defined
os.remove(openvpn_needed_file_path)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment