Skip to content

Commit

Permalink
Fix error message in stop-experiment.py (google#1813)
Browse files Browse the repository at this point in the history
It now prints the name of the script instead of `{0}`
  • Loading branch information
mvanotti authored Apr 4, 2023
1 parent 33510b2 commit 751acf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion experiment/stop_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def stop_experiment(experiment_name, experiment_config_filename):
def main():
"""Stop the experiment."""
if len(sys.argv) != 3:
print('Usage {0} <experiment-name> <experiment-config.yaml>')
print(f'Usage {sys.argv[0]} <experiment-name> <experiment-config.yaml>')
return 1
logs.initialize()
return 0 if stop_experiment(sys.argv[1], sys.argv[2]) else 1
Expand Down

0 comments on commit 751acf0

Please sign in to comment.