mirror of
https://github.com/simple-login/app.git
synced 2024-09-27 20:31:30 +02:00
use warning level when cannot encrypt using python-gnupg
This commit is contained in:
parent
86636b2eb7
commit
59745b68d0
@ -442,7 +442,7 @@ def prepare_pgp_message(
|
||||
encrypted_data = pgp_utils.encrypt_file(BytesIO(msg_bytes), pgp_fingerprint)
|
||||
second.set_payload(encrypted_data)
|
||||
except PGPException:
|
||||
LOG.exception("Cannot encrypt using python-gnupg, use pgpy")
|
||||
LOG.warning("Cannot encrypt using python-gnupg, use pgpy")
|
||||
encrypted = pgp_utils.encrypt_file_with_pgpy(msg_bytes, public_key)
|
||||
second.set_payload(str(encrypted))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user