From cf4500a96ba1994afb3705d455f52ad07123e2a1 Mon Sep 17 00:00:00 2001 From: drebs Date: Tue, 18 Jul 2017 16:01:35 -0300 Subject: [bug] avoid closing blobmanager if it doesn't exist --- src/leap/soledad/client/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/leap') diff --git a/src/leap/soledad/client/api.py b/src/leap/soledad/client/api.py index f7854158..acc0e268 100644 --- a/src/leap/soledad/client/api.py +++ b/src/leap/soledad/client/api.py @@ -291,7 +291,8 @@ class Soledad(object): """ logger.debug("closing soledad") self._dbpool.close() - self.blobmanager.close() + if self.blobmanager: + self.blobmanager.close() if getattr(self, '_dbsyncer', None): self._dbsyncer.close() -- cgit v1.2.3