From 9f0e5ac8db4813b1277c3a858cf1d5cb785a4023 Mon Sep 17 00:00:00 2001 From: drebs Date: Wed, 17 Dec 2014 14:53:08 -0200 Subject: Do not try to unlock shared db if db is not syncable. --- client/src/leap/soledad/client/shared_db.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'client/src/leap/soledad') diff --git a/client/src/leap/soledad/client/shared_db.py b/client/src/leap/soledad/client/shared_db.py index 26ddc285..f1a2642e 100644 --- a/client/src/leap/soledad/client/shared_db.py +++ b/client/src/leap/soledad/client/shared_db.py @@ -178,5 +178,6 @@ class SoledadSharedDatabase(http_database.HTTPDatabase, TokenBasedAuth): :raise HTTPError: """ - res, headers = self._request_json('DELETE', ['lock', self._uuid], - params={'token': token}) + if self.syncable: + _, _ = self._request_json( + 'DELETE', ['lock', self._uuid], params={'token': token}) -- cgit v1.2.3