From 94cd03972b13ac41055ee051f7b895cef9bfca62 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Tue, 6 Jun 2023 07:46:41 +0200 Subject: catch error in exploring GPG keys (mga#31978) --- lib/isodumper.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/isodumper.py b/lib/isodumper.py index f8d9171..01c825c 100755 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -333,7 +333,13 @@ class IsoDumper(basedialog.BaseDialog): self.sum_type = 'sha3' sig_file = "{}.{}.gpg".format(source, self.sum_type) self.source_file = "{}.{}".format(source, self.sum_type) - keys_list = gpg.list_keys() + try: + keys_list = gpg.list_keys() + except Exception as e: + self.signature_found = False + logging.error(str(e)) + logging.info(_("GPG signatures database can not be read")) + return key_present = False for entry in keys_list: if (mageia_keyid == entry['keyid']): -- cgit v1.2.1