summaryrefslogtreecommitdiff
path: root/src/leap/eip/config.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-08-22 07:46:51 +0900
committerkali <kali@leap.se>2012-08-22 07:46:51 +0900
commit83ac2efaa10de68f7fd35189f6cf272b03d60a30 (patch)
treefdd2a9b7177d647322a0e5f1dd895315749dc34d /src/leap/eip/config.py
parentf6458e263415e35fa8934b404e472346c61a4209 (diff)
fix exceptions location
Diffstat (limited to 'src/leap/eip/config.py')
-rw-r--r--src/leap/eip/config.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/leap/eip/config.py b/src/leap/eip/config.py
index c77bb142..f38268e2 100644
--- a/src/leap/eip/config.py
+++ b/src/leap/eip/config.py
@@ -10,6 +10,7 @@ from leap.util.fileutil import (which, mkdir_p,
check_and_fix_urw_only)
from leap.baseapp.permcheck import (is_pkexec_in_system,
is_auth_agent_running)
+from leap.eip import exceptions as eip_exceptions
logger = logging.getLogger(name=__name__)
logger.setLevel('DEBUG')
@@ -122,7 +123,7 @@ def check_or_create_default_vpnconf(config):
except socket.error:
# this does not look like an ip, dave
- raise EIPInitBadProviderError
+ raise eip_exceptions.EIPInitBadProviderError
if config.has_option('provider', 'remote_port'):
remote_port = config.get('provider',
@@ -265,7 +266,7 @@ def build_ovpn_command(config, debug=False, do_pkexec_check=True):
if not is_pkexec_in_system():
logger.error('no pkexec in system')
- raise EIPNoPkexecAvailable
+ raise eip_exceptions.EIPNoPkexecAvailable
if not is_auth_agent_running():
logger.warning(
@@ -273,7 +274,7 @@ def build_ovpn_command(config, debug=False, do_pkexec_check=True):
"pkexec will use its own text "
"based authentication agent. "
"that's probably a bad idea")
- raise EIPNoPolkitAuthAgentAvailable
+ raise eip_exceptions.EIPNoPolkitAuthAgentAvailable
command.append('pkexec')
@@ -410,7 +411,7 @@ def check_vpn_keys(config):
try:
check_and_fix_urw_only(keyfile)
except OSError:
- raise EIPInitBadKeyFilePermError
+ raise eip_exceptions.EIPInitBadKeyFilePermError
def get_config_json(config_file=None):