summaryrefslogtreecommitdiff
path: root/mail/src
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-08-21 14:51:34 -0300
committerTomás Touceda <chiiph@leap.se>2013-08-21 14:51:34 -0300
commit64e978ba6b064057f0feb00f0a58a0bb2ac034ad (patch)
tree229ac0bd5b8fa67e8bd7c7fe676f8d27169835e6 /mail/src
parent62b298065e51e85a06908e98870c361821c51e88 (diff)
Safely get the indexes from soledad
Diffstat (limited to 'mail/src')
-rw-r--r--mail/src/leap/mail/imap/server.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/src/leap/mail/imap/server.py b/mail/src/leap/mail/imap/server.py
index 7890a76..921f280 100644
--- a/mail/src/leap/mail/imap/server.py
+++ b/mail/src/leap/mail/imap/server.py
@@ -126,7 +126,9 @@ class IndexedDB(object):
if not self._soledad:
logger.debug("NO SOLEDAD ON IMAP INITIALIZATION")
return
- db_indexes = dict(self._soledad.list_indexes())
+ db_indexes = dict()
+ if self._soledad is not None:
+ db_indexes = dict(self._soledad.list_indexes())
for name, expression in SoledadBackedAccount.INDEXES.items():
if name not in db_indexes:
# The index does not yet exist.