Skip to content

Commit df005fe

Browse files
committed
_verify: lint fixes
Signed-off-by: William Woodruff <william@trailofbits.com>
1 parent 76e2700 commit df005fe

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

sigstore/_verify.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def verify(
254254

255255
try:
256256
entry_body = json.loads(base64.b64decode(offline_rekor_entry.body))
257-
except Exception as e:
257+
except Exception:
258258
return VerificationFailure(
259259
reason="couldn't parse offline Rekor entry's body"
260260
)
@@ -265,7 +265,10 @@ def verify(
265265
kind, version = entry_body.get("kind"), entry_body.get("apiVersion")
266266
if kind != "hashedrekord" or version != "0.0.1":
267267
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+
)
269272
)
270273

271274
spec = entry_body["spec"]

0 commit comments

Comments
 (0)