summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/src/leap/soledad/client/sync.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/leap/soledad/client/sync.py b/client/src/leap/soledad/client/sync.py
index 8303f65d..4cbd9f2a 100644
--- a/client/src/leap/soledad/client/sync.py
+++ b/client/src/leap/soledad/client/sync.py
@@ -176,7 +176,8 @@ class SoledadSynchronizer(Synchronizer):
defer_decryption=defer_decryption)
logger.debug("target gen after sync: %d" % new_gen)
logger.debug("target trans_id after sync: %s" % new_trans_id)
- self.source.commit() # sync worked, commit
+ if hasattr(self.source, 'commit'):
+ self.source.commit() # sync worked, commit
info = {
"target_replica_uid": self.target_replica_uid,
"new_gen": new_gen,