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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user