diff options
author | Ruben Pollan <meskio@sindominio.net> | 2015-09-28 23:19:48 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2015-09-28 23:19:48 +0200 |
commit | 4de93f472ac224ef32beffa1acd1c98765519160 (patch) | |
tree | 2b3065591d5f472ebd6e343b57af2f4c853b5acc /client | |
parent | 1566ac3885d566d0b3d70a44eaf0bd901b2d655e (diff) | |
parent | 3c7a41574ed1a97ae168bbbc50b127d17694734a (diff) |
Merge branch 'feat/create_db_using_cmd' into develop
- Releases: 0.8.0
Diffstat (limited to 'client')
-rw-r--r-- | client/src/leap/soledad/client/sync.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/client/src/leap/soledad/client/sync.py b/client/src/leap/soledad/client/sync.py index 110baa0a..225d3e2d 100644 --- a/client/src/leap/soledad/client/sync.py +++ b/client/src/leap/soledad/client/sync.py @@ -69,9 +69,15 @@ class SoledadSynchronizer(Synchronizer): # get target identifier, its current generation, # and its last-seen database generation for this source ensure_callback = None - (self.target_replica_uid, target_gen, target_trans_id, - target_my_gen, target_my_trans_id) = yield \ - sync_target.get_sync_info(self.source._replica_uid) + try: + (self.target_replica_uid, target_gen, target_trans_id, + target_my_gen, target_my_trans_id) = yield \ + sync_target.get_sync_info(self.source._replica_uid) + except errors.DatabaseDoesNotExist: + logger.debug("Database isn't ready on server. Will be created.") + self.target_replica_uid = None + target_gen, target_trans_id = 0, '' + target_my_gen, target_my_trans_id = 0, '' logger.debug( "Soledad target sync info:\n" |