mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 15:53:22 +08:00
use warning level when cannot encrypt using python-gnupg
This commit is contained in:
parent
86636b2eb7
commit
59745b68d0
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue