8000 Fix broken format in error for bad input in summarize_stats.py (#117375) · python/cpython@94c9742 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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)
0