From 82ff53e45cd7594bd48a4c9bc5c0970cede36073 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 27 Aug 2020 15:19:33 +0200 Subject: openpgp: Fix WKD→HKP fallback for missing requests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- gemato/openpgp.py | 5 +++-- 1 file 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( -- cgit v1.2.3