From 0a102aab37e457b4431b27c8ad02c2b1beaebbd4 Mon Sep 17 00:00:00 2001 From: Dheepak Krishnamurthy <1813121+kdheepak@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:31:15 -0500 Subject: [PATCH] fix: Use f-string to show filename in error message correctly (#7589) Co-authored-by: Philipp Rudiger --- panel/command/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panel/command/convert.py b/panel/command/convert.py index affc02a384..04e1a03443 100644 --- a/panel/command/convert.py +++ b/panel/command/convert.py @@ -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)