diff options
-rw-r--r-- | src/leap/bitmask/mail/incoming/service.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/leap/bitmask/mail/incoming/service.py b/src/leap/bitmask/mail/incoming/service.py index 471e842..2ecd587 100644 --- a/src/leap/bitmask/mail/incoming/service.py +++ b/src/leap/bitmask/mail/incoming/service.py @@ -339,6 +339,8 @@ class IncomingMail(Service): d = self._keymanager.decrypt(doc.content[ENC_JSON_KEY], self._userid) d.addErrback(self._errback) + d.addErrback(lambda _: logger.error( + '_decrypt_doc: Error decrypting document with ID %s' % doc.doc_id)) d.addCallback(process_decrypted) d.addCallback(lambda data: (doc, data)) return d |