From 0b88ef70ec12d3666a9bfc32481d672cb01cf056 Mon Sep 17 00:00:00 2001 From: drebs Date: Wed, 17 Dec 2014 14:51:55 -0200 Subject: Do not try to close db syncer if db is not syncable. --- client/src/leap/soledad/client/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/src') diff --git a/client/src/leap/soledad/client/api.py b/client/src/leap/soledad/client/api.py index 998e9148..81bf1fd9 100644 --- a/client/src/leap/soledad/client/api.py +++ b/client/src/leap/soledad/client/api.py @@ -285,7 +285,8 @@ class Soledad(object): """ logger.debug("Closing soledad") self._dbpool.close() - self._dbsyncer.close() + if getattr(self, '_dbsyncer', None): + self._dbsyncer.close() # # ILocalStorage -- cgit v1.2.3