Skip to content

Commit

Permalink
Use RuntimeError for bad command in py_funcs.py.
Browse files Browse the repository at this point in the history
Switching to use this instead of ValueError if command arg doesn't match
something supported by main(), and making message reflect the situation
a little better.
  • Loading branch information
robertbartel committed Jun 14, 2024
1 parent 6d3c685 commit e643a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/main/ngen/py_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def main():
elif args.command == 'move_job_output':
move_job_output(**(vars(args)))
else:
raise ValueError("Unsupported command {}".format(args.command))
raise RuntimeError(f"Command arg '{args.command}' doesn't match a command supported by module's main function")


if __name__ == '__main__':
Expand Down

0 comments on commit e643a96

Please sign in to comment.