File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ def verify(
254
254
255
255
try :
256
256
entry_body = json .loads (base64 .b64decode (offline_rekor_entry .body ))
257
- except Exception as e :
257
+ except Exception :
258
258
return VerificationFailure (
259
259
reason = "couldn't parse offline Rekor entry's body"
260
260
)
@@ -265,7 +265,10 @@ def verify(
265
265
kind , version = entry_body .get ("kind" ), entry_body .get ("apiVersion" )
266
266
if kind != "hashedrekord" or version != "0.0.1" :
267
267
return VerificationFailure (
268
- reason = f"Rekor entry is of unsupported kind ('{ kind } ') or API version ('{ version } ')"
268
+ reason = (
269
+ f"Rekor entry is of unsupported kind ('{ kind } ') or API "
270
+ f"version ('{ version } ')"
271
+ )
269
272
)
270
273
271
274
spec = entry_body ["spec" ]
You can’t perform that action at this time.
0 commit comments