use warning level when cannot encrypt using python-gnupg

This commit is contained in:
Son NK 2020-11-27 16:36:05 +01:00
parent 86636b2eb7
commit 59745b68d0
1 changed files with 1 additions and 1 deletions

View File

@ -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))