Browse Source

Catch all decryption errors for new libnacl >= 1.5.1

libnacl 1.5.1 introduced CryptError as a new Exception type.
master
Adam Gibson 8 years ago
parent
commit
66875aed6e
No known key found for this signature in database
GPG Key ID: B3AE09F1E9A3197A
  1. 2
      jmdaemon/jmdaemon/message_channel.py

2
jmdaemon/jmdaemon/message_channel.py

@ -902,7 +902,7 @@ class MessageChannel(object):
to_decrypt = ''.join(_chunks[1:])
try:
decrypted = decode_decrypt(to_decrypt, box)
except (ValueError, TypeError) as e:
except Exception as e:
log.debug('Error when decrypting, skipping: ' +
repr(e))
return

Loading…
Cancel
Save