We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edb59d5 commit 98ee4ecCopy full SHA for 98ee4ec
Tools/clinic/clinic.py
@@ -2500,12 +2500,12 @@ def parse_file(
2500
2501
extension = os.path.splitext(filename)[1][1:]
2502
if not extension:
2503
- fail(f"Can't extract file type for file {filename!r}")
+ raise ClinicError(f"Can't extract file type for file {filename!r}")
2504
2505
try:
2506
language = extensions[extension](filename)
2507
except KeyError:
2508
- fail(f"Can't identify file type for file {filename!r}")
+ raise ClinicError(f"Can't identify file type for file {filename!r}")
2509
2510
with open(filename, encoding="utf-8") as f:
2511
raw = f.read()
0 commit comments