summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-08-27 15:19:33 +0200
committerMichał Górny <mgorny@gentoo.org>2020-08-27 15:19:33 +0200
commit82ff53e45cd7594bd48a4c9bc5c0970cede36073 (patch)
treebb3179b604e40c08d40fd7be10c078f367a5a52a
parentfcde52868f50d179927676f3d9082dec30ab3c6f (diff)
downloadgemato-82ff53e45cd7594bd48a4c9bc5c0970cede36073.tar.gz
openpgp: Fix WKD→HKP fallback for missing requests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--gemato/openpgp.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gemato/openpgp.py b/gemato/openpgp.py
index 14b676e..a1c986d 100644
--- a/gemato/openpgp.py
+++ b/gemato/openpgp.py
@@ -289,8 +289,9 @@ debug-level guru
keys were successfully found. Otherwise, returns false.
"""
if requests is None:
- raise gemato.exceptions.OpenPGPKeyRefreshError(
- 'WKD updates require requests Python module')
+ logging.debug('refresh_keys_wkd(): failing because requests'
+ 'module is missing')
+ return False
# list all keys in the keyring
exitst, out, err = self._spawn_gpg(