diff options
author | Kali Kaneko <kali@leap.se> | 2015-11-19 18:22:14 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-11-19 18:26:44 -0400 |
commit | bb228d13aa14cabe7448f9c7e5b55744de36843a (patch) | |
tree | 490b5b12a34cf40b937b83b07ea5502151ed4acd /client | |
parent | 46678a7aecb98dbdc20846477c7f5110f3c63861 (diff) |
[bug] fix indirect dependency on couchdb for client
by subclassing the MissingDesignDocError, we don't have to import the
soledad.common.couch submodule into the soledad.client.sync
- Resolves: #7626
Diffstat (limited to 'client')
-rw-r--r-- | client/src/leap/soledad/client/sync.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/leap/soledad/client/sync.py b/client/src/leap/soledad/client/sync.py index 626ad2e5..1879031f 100644 --- a/client/src/leap/soledad/client/sync.py +++ b/client/src/leap/soledad/client/sync.py @@ -22,7 +22,7 @@ import logging from twisted.internet import defer from u1db import errors -from leap.soledad.common.couch.errors import MissingDesignDocError +from leap.soledad.common.errors import BackendNotReadyError from u1db.sync import Synchronizer @@ -74,7 +74,7 @@ class SoledadSynchronizer(Synchronizer): (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, MissingDesignDocError) as e: + except (errors.DatabaseDoesNotExist, BackendNotReadyError) as e: logger.debug("Database isn't ready on server. Will be created.") logger.debug("Reason: %s", e.__class__) self.target_replica_uid = None |