diff options
author | Tomás Touceda <chiiph@leap.se> | 2013-10-31 16:52:10 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2013-10-31 16:52:10 -0300 |
commit | 1704ca96da952a17f5d06d34e2e13bc3bb499edd (patch) | |
tree | ba2b93fa8b6b564b2538c6a6e8d52870363a4a39 /src/leap/bitmask/services/soledad | |
parent | 553bc677db6e24758c8a0d842de0d1839118271e (diff) | |
parent | 5ce85ca915bc63a08e82857a445c1866ca3abf85 (diff) |
Merge remote-tracking branch 'kali/bug/improve-error-handling' into develop
Diffstat (limited to 'src/leap/bitmask/services/soledad')
-rw-r--r-- | src/leap/bitmask/services/soledad/soledadbootstrapper.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/leap/bitmask/services/soledad/soledadbootstrapper.py b/src/leap/bitmask/services/soledad/soledadbootstrapper.py index 63596398..54ef67eb 100644 --- a/src/leap/bitmask/services/soledad/soledadbootstrapper.py +++ b/src/leap/bitmask/services/soledad/soledadbootstrapper.py @@ -41,7 +41,7 @@ from leap.common.check import leap_assert, leap_assert_type, leap_check from leap.common.files import which from leap.keymanager import KeyManager, openpgp from leap.keymanager.errors import KeyNotFound -from leap.soledad.client import Soledad +from leap.soledad.client import Soledad, BootstrapSequenceError logger = logging.getLogger(__name__) @@ -260,7 +260,10 @@ class SoledadBootstrapper(AbstractBootstrapper): logger.debug("SOLEDAD initialization TIMED OUT...") self.soledad_timeout.emit() except socket.error as exc: - logger.error("Socket error while initializing soledad") + logger.warning("Socket error while initializing soledad") + self.soledad_timeout.emit() + except BootstrapSequenceError as exc: + logger.warning("Error while initializing soledad") self.soledad_timeout.emit() # unrecoverable |