diff options
author | drebs <drebs@leap.se> | 2014-12-17 14:53:08 -0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-02-11 14:03:18 -0400 |
commit | 9f0e5ac8db4813b1277c3a858cf1d5cb785a4023 (patch) | |
tree | 046c6dd6e8692920b0b96a07befc73c7d13a4676 | |
parent | 0b88ef70ec12d3666a9bfc32481d672cb01cf056 (diff) |
Do not try to unlock shared db if db is not syncable.
-rw-r--r-- | client/src/leap/soledad/client/shared_db.py | 5 |
1 files changed, 3 insertions, 2 deletions
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}) |