summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2016-09-01 00:55:26 -0400
committerKali Kaneko <kali@leap.se>2016-09-02 15:33:41 -0400
commit6b283761de3a845d09de20fcc2b6a4a63130e45f (patch)
tree95dc585283ba310bb07b47be507070d5f3120d30 /client
parent0f4bc628a4677978a9330f510fb20dfc7c8fced2 (diff)
[bug] fail gracefully if dbsyncer has not been initialized
this is needed for some mail tests.
Diffstat (limited to 'client')
-rw-r--r--client/src/leap/soledad/client/api.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/leap/soledad/client/api.py b/client/src/leap/soledad/client/api.py
index 1bfbed8a..fbf605a9 100644
--- a/client/src/leap/soledad/client/api.py
+++ b/client/src/leap/soledad/client/api.py
@@ -736,6 +736,8 @@ class Soledad(object):
:rtype: twisted.internet.defer.Deferred
"""
sync_url = urlparse.urljoin(self._server_url, 'user-%s' % self.uuid)
+ if not self._dbsyncer:
+ return
d = self._dbsyncer.sync(
sync_url,
creds=self._creds,