summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/leap/mail/mail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/mail/mail.py b/src/leap/mail/mail.py
index feed11b..f6936dd 100644
--- a/src/leap/mail/mail.py
+++ b/src/leap/mail/mail.py
@@ -490,7 +490,7 @@ class MessageCollection(object):
def cleanup_and_get_doc_after_pending_insert(result):
for key in result:
- self._pending_inserts.pop(key)
+ self._pending_inserts.pop(key, None)
return get_doc_fun(self.mbox_uuid, uid)
if not self._pending_inserts: