From 48d0039284a7780fcac7c0b3bc995dbd4694791f Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Thu, 9 Jul 2015 15:41:23 -0400 Subject: [bug] do not raise if the pending insert cannot be removed --- mail/src/leap/mail/mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/src/leap/mail/mail.py b/mail/src/leap/mail/mail.py index feed11b..f6936dd 100644 --- a/mail/src/leap/mail/mail.py +++ b/mail/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: -- cgit v1.2.3