diff options
author | Tomás Touceda <chiiph@leap.se> | 2013-08-21 14:51:34 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2013-08-21 14:51:34 -0300 |
commit | da881bd0bd446c77503adfd07f23bbdb9654a52f (patch) | |
tree | 13d548a56f1738d65170b6d223103c2a2488d78d /src/leap/mail/imap | |
parent | 35bdd37d15732af2cf59636ecf6970f147fd3747 (diff) |
Safely get the indexes from soledad
Diffstat (limited to 'src/leap/mail/imap')
-rw-r--r-- | src/leap/mail/imap/server.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/mail/imap/server.py b/src/leap/mail/imap/server.py index 7890a76..921f280 100644 --- a/src/leap/mail/imap/server.py +++ b/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. |