Skip to content

Commit

Permalink
Fix broken format in error for bad input in summarize_stats.py (#117375)
Browse files Browse the repository at this point in the history
When you pass the script a non-existent input file, you get a TypeError instead of the intended ValueError.
  • Loading branch information
gvanrossum authored Mar 29, 2024
1 parent 5d21d88 commit 94c9742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/scripts/summarize_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def load_raw_data(input: Path) -> RawData:
return data

else:
raise ValueError(f"{input:r} is not a file or directory path")
raise ValueError(f"{input} is not a file or directory path")


def save_raw_data(data: RawData, json_output: TextIO):
Expand Down

0 comments on commit 94c9742

Please sign in to comment.