summaryrefslogtreecommitdiff
path: root/client/src
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2015-04-27 15:31:36 -0300
committerdrebs <drebs@leap.se>2015-04-28 21:34:39 -0300
commit68f89f1dc3de213783b32dbfa3ff6d1e294c51a8 (patch)
treee9d060280dec77dead23c9d1e01d2403b59a457d /client/src
parent0ac9b6a612f2e8ff138008bb7add93bdd6a71b9d (diff)
[doc] fix doc on why to re-raise sync exceptions
Diffstat (limited to 'client/src')
-rw-r--r--client/src/leap/soledad/client/sync.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/client/src/leap/soledad/client/sync.py b/client/src/leap/soledad/client/sync.py
index 1a5e2989..d3f106da 100644
--- a/client/src/leap/soledad/client/sync.py
+++ b/client/src/leap/soledad/client/sync.py
@@ -81,10 +81,13 @@ class SoledadSynchronizer(Synchronizer):
return self._sync(autocreate=autocreate,
defer_decryption=defer_decryption)
except Exception:
- # re-raising the exceptions to let syqlcipher.sync catch them
- # (and re-create the syncer instance if needed)
+ # we want this exception to reach either SQLCipherU1DBSync.sync or
+ # the Solead api object itself, so it is poperly handled and/or
+ # logged...
raise
finally:
+ # ... but we also want to release the syncing lock so this
+ # Synchronizer may be reused later.
self.release_syncing_lock()
def _sync(self, autocreate=False, defer_decryption=True):