diff options
author | kali <kali@leap.se> | 2012-08-08 07:01:27 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-08-08 07:01:27 +0900 |
commit | e81ddf7648e1075a15d8add11cd975a73aa09926 (patch) | |
tree | 7c0c835486e3e52ccd83b80c9c1e17fb7725d0a9 /src/leap/eip | |
parent | 530e10214a6f018909714b288d997df13ab4f9df (diff) |
catch missing keyfile error
Diffstat (limited to 'src/leap/eip')
-rw-r--r-- | src/leap/eip/conductor.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/eip/conductor.py b/src/leap/eip/conductor.py index 3f40f068..11b0358c 100644 --- a/src/leap/eip/conductor.py +++ b/src/leap/eip/conductor.py @@ -14,6 +14,7 @@ from leap.eip.config import (get_config, build_ovpn_command, check_vpn_keys, EIPNoPkexecAvailable, EIPNoPolkitAuthAgentAvailable, + EIPInitNoKeyFileError, EIPInitBadKeyFilePermError) from leap.eip.vpnwatcher import EIPConnectionStatus, status_watcher from leap.eip.vpnmanager import OpenVPNManager, ConnectionRefusedError @@ -101,6 +102,7 @@ to be triggered for each one of them. self.missing_pkexec = False self.missing_auth_agent = False self.bad_keyfile_perms = False + self.missing_vpn_keyfile = False self.command = None self.args = None @@ -181,6 +183,8 @@ to be triggered for each one of them. """ try: check_vpn_keys(self.config) + except EIPInitNoKeyFileError: + self.missing_vpn_keyfile = True except EIPInitBadKeyFilePermError: logger.error('error while checking vpn keys') self.bad_keyfile_perms = True |