diff options
author | Tomás Touceda <chiiph@leap.se> | 2014-02-12 10:57:50 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2014-02-12 10:57:50 -0300 |
commit | 73047830a243217406d72b267d106c5c8434b499 (patch) | |
tree | 36af131ab6e67682e0138c9dafe449cb564ccc65 /src/leap | |
parent | 706a3cfe7806baed2d382acf8eb7358ef399b924 (diff) | |
parent | d8ce7c3b9f8b0176f8ac617ee30072a86c52f695 (diff) |
Merge remote-tracking branch 'refs/remotes/ivan/bug/handle-closed-soledad' into develop
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/bitmask/services/soledad/soledadbootstrapper.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/leap/bitmask/services/soledad/soledadbootstrapper.py b/src/leap/bitmask/services/soledad/soledadbootstrapper.py index 9a292b18..9e797042 100644 --- a/src/leap/bitmask/services/soledad/soledadbootstrapper.py +++ b/src/leap/bitmask/services/soledad/soledadbootstrapper.py @@ -20,6 +20,7 @@ Soledad bootstrapping import logging import os import socket +import sqlite3 import sys from ssl import SSLError @@ -348,6 +349,10 @@ class SoledadBootstrapper(AbstractBootstrapper): # ubuntu folks. sync_tries -= 1 continue + except Exception as e: + logger.exception("Unhandled error while syncing " + "soledad: %r" % (e,)) + break # reached bottom, failed to sync # and there's nothing we can do... @@ -435,7 +440,9 @@ class SoledadBootstrapper(AbstractBootstrapper): except u1db_errors.InvalidGeneration as exc: logger.error("%r" % (exc,)) raise SoledadSyncError("u1db: InvalidGeneration") - + except sqlite3.ProgrammingError as e: + logger.exception("%r" % (e,)) + raise except Exception as exc: logger.exception("Unhandled error while syncing " "soledad: %r" % (exc,)) |