summaryrefslogtreecommitdiff
path: root/src/leap/mail
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-02-20 01:22:01 -0400
committerKali Kaneko <kali@leap.se>2014-02-20 11:50:10 -0400
commitc9ada6da8f3c94efd0739abd8be46c6356854a49 (patch)
tree5e9f155858ed8621a5af2c9eeca10522dc9b6ee4 /src/leap/mail
parent52868a4c67170abbfa19deda9bd20931c21554b7 (diff)
catch empty rdoc
Diffstat (limited to 'src/leap/mail')
-rw-r--r--src/leap/mail/imap/messages.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/leap/mail/imap/messages.py b/src/leap/mail/imap/messages.py
index 8c777f5..9f7f6e2 100644
--- a/src/leap/mail/imap/messages.py
+++ b/src/leap/mail/imap/messages.py
@@ -990,6 +990,8 @@ class MessageCollection(WithMsgFields, IndexedDB, MailParser, MBoxParser):
# not loaded in the memory store yet.
# let's fetch them from soledad...
rdoc = self._get_recent_doc_from_soledad()
+ if rdoc is None:
+ return set([])
rflags = set(rdoc.content.get(
fields.RECENTFLAGS_KEY, []))
# ...and cache them now.