From 24dbc5f63c33b11febb730b1a72e28983a31dc9a Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Sun, 19 May 2013 00:06:15 +0900 Subject: add warning if no shared db found --- src/leap/soledad/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/leap/soledad/__init__.py b/src/leap/soledad/__init__.py index 5bec444e..c70fee91 100644 --- a/src/leap/soledad/__init__.py +++ b/src/leap/soledad/__init__.py @@ -546,6 +546,7 @@ class Soledad(object): events.events_pb2.SOLEDAD_DOWNLOADING_KEYS, self._uuid) db = self._shared_db() if not db: + logger.warning('No shared db found') return doc = db.get_doc(self._uuid_hash()) events.signal( @@ -579,6 +580,7 @@ class Soledad(object): events.events_pb2.SOLEDAD_UPLOADING_KEYS, self._uuid) db = self._shared_db() if not db: + logger.warning('No shared db found') return db.put_doc(doc) events.signal( -- cgit v1.2.3