Skip to content

Commit 195e28f

Browse files
hugovkradarhere
andauthored
Replace print+SystemExit with parser.error
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
1 parent 9481f2e commit 195e28f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/embed-sbom.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ def main() -> None:
8989

9090
wheels = sorted(args.wheelhouse.glob("*.whl"))
9191
if not wheels:
92-
print(f"error: no wheels found in {args.wheelhouse}", file=sys.stderr)
93-
raise SystemExit(1)
92+
parser.error(f"no wheels found in {args.wheelhouse}")
9493

9594
for wheel in wheels:
9695
embed(wheel, sbom)

0 commit comments

Comments
 (0)