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:
Guido van Rossum 2024-03-29 11:31:09 -07:00 committed by GitHub
parent 5d21d884b6
commit 94c97423a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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):