diff options
author | Kali Kaneko <kali@leap.se> | 2014-02-20 01:27:17 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-02-20 11:50:11 -0400 |
commit | cc5e8252a091560d9ea241e846b4a917ac3dc640 (patch) | |
tree | ddcb5c0db87ced01d57e648f85507abcd6215a85 | |
parent | f58f23fee90496881ef1e1b0df9a5cabcd26bfa0 (diff) |
ignore keyerror on deletion
-rw-r--r-- | mail/src/leap/mail/imap/memorystore.py | 2 |
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 aa7da3d3..6206468d 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) |