mirror of
https://github.com/simple-login/app.git
synced 2024-09-21 15:36:02 +08:00
fix retry pgp
This commit is contained in:
parent
2ef33cc23f
commit
1dc2e9c54f
|
@ -51,6 +51,7 @@ def encrypt_file(data: BytesIO, fingerprint: str) -> str:
|
|||
load_public_key(mailbox.pgp_public_key)
|
||||
|
||||
LOG.d("retry to encrypt")
|
||||
data.seek(0)
|
||||
r = gpg.encrypt_file(data, fingerprint, always_trust=True)
|
||||
|
||||
if not r.ok:
|
||||
|
|
Loading…
Reference in a new issue