From 4e5287e1df2c25d4869691828b91d187e8777817 Mon Sep 17 00:00:00 2001 From: tecnovert Date: Fri, 11 Sep 2020 19:47:00 +0200 Subject: [PATCH] Don't fail on expired keys. --- bin/basicswap_prepare.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/basicswap_prepare.py b/bin/basicswap_prepare.py index c114fac..8f9705c 100755 --- a/bin/basicswap_prepare.py +++ b/bin/basicswap_prepare.py @@ -198,7 +198,8 @@ def prepareCore(coin, version, settings, data_dir): with open(assert_sig_path, 'rb') as fp: verified = gpg.verify_file(fp, assert_path) - if verified.username is None: + if verified.valid is False \ + and not (verified.status == 'signature valid' and verified.key_status == 'signing key has expired'): raise ValueError('Signature verification failed.') extractCore(coin, version, settings, bin_dir, release_path)