Skip to content

Commit

Permalink
Don't stop on zero returncode
Browse files Browse the repository at this point in the history
  • Loading branch information
delfick committed Dec 26, 2024
1 parent 871da11 commit 03764d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def run(*args: str, env: dict[str, str] | None = None, cwd: pathlib.Path | None
try:
subprocess.run(["/bin/bash", str(here / "uv"), "run", *args], env=env, cwd=cwd, check=True)
except subprocess.CalledProcessError as e:
sys.exit(e.returncode)
if e.returncode != 0:
sys.exit(e.returncode)


@click.group()
Expand Down

0 comments on commit 03764d4

Please sign in to comment.