aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2023-06-06 07:46:41 +0200
committerPapoteur <papoteur@mageia.org>2023-06-06 07:46:41 +0200
commit94cd03972b13ac41055ee051f7b895cef9bfca62 (patch)
tree9825d89c212baf2e5d608fe23ba0ac3f60aa4d81
parentc97c34c7f718530a27dca8eafb1b4684a2559797 (diff)
downloadisodumper-94cd03972b13ac41055ee051f7b895cef9bfca62.tar
isodumper-94cd03972b13ac41055ee051f7b895cef9bfca62.tar.gz
isodumper-94cd03972b13ac41055ee051f7b895cef9bfca62.tar.bz2
isodumper-94cd03972b13ac41055ee051f7b895cef9bfca62.tar.xz
isodumper-94cd03972b13ac41055ee051f7b895cef9bfca62.zip
catch error in exploring GPG keys (mga#31978)
-rwxr-xr-xlib/isodumper.py8
1 files changed, 7 insertions, 1 deletions
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']):