diff options
author | Kali Kaneko <kali@leap.se> | 2015-07-09 15:41:23 -0400 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2015-07-13 11:55:30 -0400 |
commit | 040a5ae5c8ef07251fce19143439b5ff9714b4de (patch) | |
tree | b2902da9528a02f302ca37c121da08ebd936fe1c /src/leap/mail | |
parent | 1b04096571cfa9002f9bd1cb75d99cdbbb7d7936 (diff) |
[bug] do not raise if the pending insert cannot be removed
Diffstat (limited to 'src/leap/mail')
-rw-r--r-- | src/leap/mail/mail.py | 2 |
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: |