From 6b283761de3a845d09de20fcc2b6a4a63130e45f Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Thu, 1 Sep 2016 00:55:26 -0400 Subject: [bug] fail gracefully if dbsyncer has not been initialized this is needed for some mail tests. --- client/src/leap/soledad/client/api.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client/src/leap/soledad') 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, -- cgit v1.2.3