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): ...@@ -262,7 +262,8 @@ class MessageStream(object, metaclass=MediaStreamType):
for (account, key) in key_list: for (account, key) in key_list:
try: try:
decrypted_message = key.decrypt(pgpMessage) 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}') log.debug(f'-- Decryption failed for {msg_id} with account key {account.id}, error: {error}')
continue continue
else: 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