diff options
author | kali <kali@leap.se> | 2013-01-24 02:39:34 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2013-01-24 02:39:34 +0900 |
commit | fea677bb0e3c9ec43353f644879636b9a63a3634 (patch) | |
tree | b53baf5046ed0bd996967bf5d332fb6f83de1f92 /src/leap/baseapp/eip.py | |
parent | 8226d6032b6db0c15ff70e377f87f4acfdd21787 (diff) | |
parent | ff59da55ef9a176b36cef19d67e7ec363bf5d739 (diff) |
Merge branch 'feature/fix-connect-page' into develop
Diffstat (limited to 'src/leap/baseapp/eip.py')
-rw-r--r-- | src/leap/baseapp/eip.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/leap/baseapp/eip.py b/src/leap/baseapp/eip.py index 4c1fb32d..2f215f00 100644 --- a/src/leap/baseapp/eip.py +++ b/src/leap/baseapp/eip.py @@ -193,21 +193,24 @@ class EIPConductorAppMixin(object): # connection information via management interface log = self.conductor.get_log() error_matrix = [(EVENT_CONNECT_REFUSED, (self.start_or_stopVPN, ))] - self.network_checker.checker.parse_log_and_react(log, error_matrix) + if hasattr(self.network_checker, 'checker'): + self.network_checker.checker.parse_log_and_react(log, error_matrix) @QtCore.pyqtSlot() - def start_or_stopVPN(self): + def start_or_stopVPN(self, **kwargs): """ stub for running child process with vpn """ if self.conductor.has_errors(): logger.debug('not starting vpn; conductor has errors') + return if self.eip_service_started is False: try: self.conductor.connect() except eip_exceptions.EIPNoCommandError as exc: + logger.error('tried to run openvpn but no command is set') self.triggerEIPError.emit(exc) except Exception as err: |