made it so it automaticly trusts every pgp key
This commit is contained in:
parent
27935604fe
commit
ccf0729630
1 changed files with 1 additions and 1 deletions
|
|
@ -107,7 +107,7 @@ def pgp_encrypt_and_import(pgp_key: str, message: str):
|
||||||
return None, None
|
return None, None
|
||||||
fingerprint = result.fingerprints[0]
|
fingerprint = result.fingerprints[0]
|
||||||
# encrypts message to the user's fingerprint
|
# encrypts message to the user's fingerprint
|
||||||
encrypted = gpg.encrypt(message, recipients=[fingerprint])
|
encrypted = gpg.encrypt(message, recipients=[fingerprint], always_trust=True)
|
||||||
if not encrypted.ok:
|
if not encrypted.ok:
|
||||||
return fingerprint, None
|
return fingerprint, None
|
||||||
return fingerprint, str(encrypted)
|
return fingerprint, str(encrypted)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue