diff options
author | Kali Kaneko <kali@leap.se> | 2014-02-06 10:29:36 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-02-17 11:37:03 -0400 |
commit | 49d4e76decd2166a602088b622e88b3812b26a68 (patch) | |
tree | 2be8ae108756fc5d1dfa0a68a3736e75d20fafb5 /mail | |
parent | 4e672c2593fb975cec00e5d88a7e5d5e9bb3b18e (diff) |
defend against empty items
Diffstat (limited to 'mail')
-rw-r--r-- | mail/src/leap/mail/imap/soledadstore.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/src/leap/mail/imap/soledadstore.py b/mail/src/leap/mail/imap/soledadstore.py index 13f896f..3c0b6f9 100644 --- a/mail/src/leap/mail/imap/soledadstore.py +++ b/mail/src/leap/mail/imap/soledadstore.py @@ -35,7 +35,7 @@ from leap.mail.imap.messageparts import RecentFlagsDoc from leap.mail.imap.fields import fields from leap.mail.imap.interfaces import IMessageStore from leap.mail.messageflow import IMessageConsumer -from leap.mail.utils import first +from leap.mail.utils import first, empty logger = logging.getLogger(__name__) @@ -303,6 +303,8 @@ class SoledadStore(ContentDedup): """ failed = False for item, call in items: + if empty(item): + continue try: self._try_call(call, item) except Exception as exc: |