summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-02-20 01:27:17 -0400
committerKali Kaneko <kali@leap.se>2014-02-20 11:50:11 -0400
commitcc5e8252a091560d9ea241e846b4a917ac3dc640 (patch)
treeddcb5c0db87ced01d57e648f85507abcd6215a85 /mail
parentf58f23fee90496881ef1e1b0df9a5cabcd26bfa0 (diff)
ignore keyerror on deletion
Diffstat (limited to 'mail')
-rw-r--r--mail/src/leap/mail/imap/memorystore.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mail/src/leap/mail/imap/memorystore.py b/mail/src/leap/mail/imap/memorystore.py
index aa7da3d..6206468 100644
--- a/mail/src/leap/mail/imap/memorystore.py
+++ b/mail/src/leap/mail/imap/memorystore.py
@@ -514,6 +514,8 @@ class MemoryStore(object):
try:
with self._fdoc_docid_lock:
del self._fdoc_id_store[mbox][uid]
+ except KeyError:
+ pass
except Exception as exc:
logger.error("error while removing message!")
logger.exception(exc)