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 Jul 2, 2024
1 parent 7b65f19 commit 4e723ee
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 4e723ee

Please sign in to comment.