summaryrefslogtreecommitdiff
path: root/src/leap/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
commit976ec85451bef3fd380f69c64e803d7740d7dae4 (patch)
tree91ef04803c589af26ef872563ab8fdf63d4bc516 /src/leap/mail
parentc9ada6da8f3c94efd0739abd8be46c6356854a49 (diff)
ignore keyerror on deletion
Diffstat (limited to 'src/leap/mail')
-rw-r--r--src/leap/mail/imap/memorystore.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/leap/mail/imap/memorystore.py b/src/leap/mail/imap/memorystore.py
index aa7da3d..6206468 100644
--- a/src/leap/mail/imap/memorystore.py
+++ b/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)