Skip to content

Commit 94c9742

Browse files
authored
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.
1 parent 5d21d88 commit 94c9742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/scripts/summarize_stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def load_raw_data(input: Path) -> RawData:
114114
return data
115115

116116
else:
117-
raise ValueError(f"{input:r} is not a file or directory path")
117+
raise ValueError(f"{input} is not a file or directory path")
118118

119119

120120
def save_raw_data(data: RawData, json_output: TextIO):

0 commit comments

Comments
 (0)