From b46b3c9366fdf27974e4394a4b9ee0dcbd357013 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Mon, 7 Dec 2020 16:24:25 -0500 Subject: Don't crash if dkimpy is not installed Something I should have found out before I tagged 0.6.0. Signed-off-by: Konstantin Ryabitsev --- b4/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b4/__init__.py b/b4/__init__.py index fa26264..5a81b67 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -1354,7 +1354,7 @@ class LoreMessage: fixtrailers.append(list(trailer[:3])) if trailer[:3] not in btrailers: extra = '' - if config.get('attestation-check-dkim') == 'yes' and attpolicy != 'off': + if can_dkim_verify and config.get('attestation-check-dkim') == 'yes' and attpolicy != 'off': if len(trailer) > 3 and trailer[3] is not None: fmsg = trailer[3] attsig = LoreAttestationSignatureDKIM(fmsg.msg) # noqa -- cgit v1.2.3