From f467b16df8697ffeb5456957352717ba9630090a Mon Sep 17 00:00:00 2001 From: Markus Keil Date: Tue, 16 Jan 2024 19:09:50 +0100 Subject: [PATCH] enhance trust --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 8903bbe..bb985fd 100644 --- a/main.py +++ b/main.py @@ -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]