From cc5e8252a091560d9ea241e846b4a917ac3dc640 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Thu, 20 Feb 2014 01:27:17 -0400 Subject: ignore keyerror on deletion --- mail/src/leap/mail/imap/memorystore.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mail/src/leap') 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) -- cgit v1.2.3