summaryrefslogtreecommitdiff
path: root/mail/src
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-09-21 17:22:23 -0400
committerKali Kaneko <kali@leap.se>2015-09-21 17:22:37 -0400
commit4e8bbae8a96c378d07e1b437159e0b84ca8e4a5b (patch)
tree69427fb08e4c6eca64e3d4995a7e64029105e821 /mail/src
parent0a61fef7a6eba0b1d24ee7ed66775d2f8335c415 (diff)
[bug] filter out Nones in the sequence of messages
Diffstat (limited to 'mail/src')
-rw-r--r--mail/src/leap/mail/imap/mailbox.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/src/leap/mail/imap/mailbox.py b/mail/src/leap/mail/imap/mailbox.py
index c52a2e36..e73994be 100644
--- a/mail/src/leap/mail/imap/mailbox.py
+++ b/mail/src/leap/mail/imap/mailbox.py
@@ -558,7 +558,8 @@ class IMAPMailbox(object):
def _get_imap_msg(messages):
d_imapmsg = []
- for msg in messages:
+ # just in case we got bad data in here
+ for msg in filter(None, messages):
d_imapmsg.append(getimapmsg(msg))
return defer.gatherResults(d_imapmsg, consumeErrors=True)