mirror of
https://github.com/simple-login/app.git
synced 2025-02-23 07:13:18 +08:00
use warning level for "Cannot encrypt using the imported key" error
This commit is contained in:
parent
74a63db835
commit
0585ba97ee
1 changed files with 3 additions and 1 deletions
|
@ -43,7 +43,9 @@ def load_public_key_and_check(public_key: str) -> str:
|
|||
try:
|
||||
encrypt_file(dummy_data, fingerprint)
|
||||
except Exception as e:
|
||||
LOG.exception("Cannot encrypt using the imported key")
|
||||
LOG.warning(
|
||||
"Cannot encrypt using the imported key %s %s", fingerprint, public_key
|
||||
)
|
||||
# remove the fingerprint
|
||||
gpg.delete_keys([fingerprint])
|
||||
raise PGPException("Encryption fails with the key") from e
|
||||
|
|
Loading…
Reference in a new issue