You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The Python script should be updating the trust level, but it might be me; I can’t think of any way to fix it." To Reproduce
gpg=gnupg.GPG()
cert="DACCF18B6800FCD0"trust_levels= [("TRUST_FULLY", "Trusted"),("TRUST_NEVER", "NOT Trusted")]
trust=radiolist_dialog(
title="Select a trust level",
text="Selec a trust level for the selected key:",
values=trust_levels
).run()
iftrust:
gpg.trust_keys(cert, trust)
File "/home/nichokas/Documents/gpg4td/venv/lib/python3.12/site-packages/gnupg.py", line 2276, in trust_keys
raise ValueError('gpg returned an error - return code %d' % p.returncode)
ValueError: gpg returned an error - return code 2
Expected behavior
Certificate with changed trust
Environment
fedora linux 40, python 3.12
v0.5.3
The text was updated successfully, but these errors were encountered:
I suggest you enable logging and look at the portion of the log relating to the trust_keys() call. If you don't spot an obvious problem, post that portion of the log here.
Describe the bug
The Python script should be updating the trust level, but it might be me; I can’t think of any way to fix it."
To Reproduce
File "/home/nichokas/Documents/gpg4td/venv/lib/python3.12/site-packages/gnupg.py", line 2276, in trust_keys
raise ValueError('gpg returned an error - return code %d' % p.returncode)
ValueError: gpg returned an error - return code 2
Expected behavior
Certificate with changed trust
Environment
The text was updated successfully, but these errors were encountered: