mirror of https://github.com/python/cpython
Fix broken format in error for bad input in summarize_stats.py (#117375)
When you pass the script a non-existent input file, you get a TypeError instead of the intended ValueError.
This commit is contained in:
parent
5d21d884b6
commit
94c97423a9
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue