diff options
author | Kali Kaneko <kali@leap.se> | 2015-09-21 17:22:23 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-09-21 17:22:37 -0400 |
commit | 4e8bbae8a96c378d07e1b437159e0b84ca8e4a5b (patch) | |
tree | 69427fb08e4c6eca64e3d4995a7e64029105e821 /mail/src/leap | |
parent | 0a61fef7a6eba0b1d24ee7ed66775d2f8335c415 (diff) |
[bug] filter out Nones in the sequence of messages
Diffstat (limited to 'mail/src/leap')
-rw-r--r-- | mail/src/leap/mail/imap/mailbox.py | 3 |
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) |