Skip to content

Commit

Permalink
fix: Use f-string to show filename in error message correctly (#7589)
Browse files Browse the repository at this point in the history
Co-authored-by: Philipp Rudiger <[email protected]>
  • Loading branch information
kdheepak and philippjfr authored Jan 7, 2025
1 parent aac5ed2 commit 0a102aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/command/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def invoke(self, args: argparse.Namespace) -> None:
for f in args.files:
p = pathlib.Path(f).absolute()
if not p.is_file():
raise ValueError('File {f!r} not found.')
raise ValueError(f'File {f!r} not found.')
elif p not in excluded:
included.append(p)

Expand Down

0 comments on commit 0a102aa

Please sign in to comment.