diff options
author | Papoteur <papoteur@mageia.org> | 2023-06-06 07:46:41 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2023-06-06 07:46:41 +0200 |
commit | 94cd03972b13ac41055ee051f7b895cef9bfca62 (patch) | |
tree | 9825d89c212baf2e5d608fe23ba0ac3f60aa4d81 /lib/isodumper.py | |
parent | c97c34c7f718530a27dca8eafb1b4684a2559797 (diff) | |
download | isodumper-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)
Diffstat (limited to 'lib/isodumper.py')
-rwxr-xr-x | lib/isodumper.py | 8 |
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']): |