Skip to content

Commit

Permalink
enhance trust
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Jan 16, 2024
1 parent c798531 commit f467b16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,8 @@ async def on_ready():
# Set trust for imported keys
for key in imported_keys:
keyid = key.fingerprints[0]
gpg.trust_keys(keyid, 'TRUST_FULLY')
print(f'GPG key imported and trusted: {keyid}')
trust_result = gpg.trust_keys([keyid], 'TRUST_ULTIMATE')
print(f'GPG key imported and trusted: {keyid} => {trust_result}')

# Get the fingerprints of the imported keys
key_fingerprints = [result.fingerprints[0] for result in imported_keys]
Expand Down

0 comments on commit f467b16

Please sign in to comment.