aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-12-07 16:24:25 -0500
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-12-07 16:24:25 -0500
commitb46b3c9366fdf27974e4394a4b9ee0dcbd357013 (patch)
tree5a50732b86f501ddc07087363d1c77b0c4cc042b
parent3c36fb86d395f5d45b095033b0215e64c7eb682c (diff)
downloadb46b3c9366fdf27974e4394a4b9ee0dcbd357013.tar.gz
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 <konstantin@linuxfoundation.org>
-rw-r--r--b4/__init__.py2
1 files changed, 1 insertions, 1 deletions
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