summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap/soledadstore.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-02-06 10:29:36 -0400
committerKali Kaneko <kali@leap.se>2014-02-17 11:37:03 -0400
commitb7d28d1ee8208e1361caa73740d826af3b4c572e (patch)
tree0012343aa9153ba395a4d7a219dc359cd658cd13 /src/leap/mail/imap/soledadstore.py
parent26d6db6210eaca18002c1ec8c5619d7fbd3e4243 (diff)
defend against empty items
Diffstat (limited to 'src/leap/mail/imap/soledadstore.py')
-rw-r--r--src/leap/mail/imap/soledadstore.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/mail/imap/soledadstore.py b/src/leap/mail/imap/soledadstore.py
index 13f896f..3c0b6f9 100644
--- a/src/leap/mail/imap/soledadstore.py
+++ b/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: