Commit daad4110 authored by Tijmen de Mes's avatar Tijmen de Mes

Fixed displaying decryption error

parent bd962709
......@@ -262,7 +262,8 @@ class MessageStream(object, metaclass=MediaStreamType):
for (account, key) in key_list:
try:
decrypted_message = key.decrypt(pgpMessage)
except (PGPDecryptionError, PGPError) as error:
except (PGPDecryptionError, PGPError) as e:
error = e
log.debug(f'-- Decryption failed for {msg_id} with account key {account.id}, error: {error}')
continue
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment