summaryrefslogtreecommitdiff
path: root/src/leap/eip/eipconnection.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-08-21 03:30:44 +0900
committerkali <kali@leap.se>2012-08-21 03:30:44 +0900
commit1abd35337a186e7ab1bab414c0a3809b8583b5a3 (patch)
tree288ba17389dd0ae13c7f5a5d84bf66b234fc2ef0 /src/leap/eip/eipconnection.py
parent6716c0eb2d82df92838017dc5cb11fee1861308f (diff)
moved exceptions to its own file
Diffstat (limited to 'src/leap/eip/eipconnection.py')
-rw-r--r--src/leap/eip/eipconnection.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/leap/eip/eipconnection.py b/src/leap/eip/eipconnection.py
index a0fdd77d..7e6c4038 100644
--- a/src/leap/eip/eipconnection.py
+++ b/src/leap/eip/eipconnection.py
@@ -6,9 +6,10 @@ import logging
logger = logging.getLogger(name=__name__)
+from leap.base.connection import ConnectionError
+from leap.eip import exceptions as eip_exceptions
from leap.eip.openvpnconnection import (
OpenVPNConnection, ConnectionRefusedError)
-from leap.base.connection import ConnectionError
class EIPConnection(OpenVPNConnection):
@@ -112,7 +113,7 @@ class EIPConnection(OpenVPNConnection):
#conn_result = ConState.DISCONNECTED
try:
conn_result = self._try_connection()
- except UnrecoverableError as except_msg:
+ except eip_exceptions.UnrecoverableError as except_msg:
logger.error("FATAL: %s" % unicode(except_msg))
conn_result = self.status.UNRECOVERABLE
except Exception as except_msg: