Skip to content

Commit

Permalink
try to exit with status code 1 on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dhosterman committed Aug 27, 2024
1 parent afc40f2 commit 4f4b64e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modelbench/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,4 +427,7 @@ def clean_text(str):


if __name__ == "__main__":
cli()
try:
cli()
except Exception as e:
raise SystemExit(e)

0 comments on commit 4f4b64e

Please sign in to comment.