From 5230b44fa823797dc5698a688bed8038ae6f8521 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sun, 16 Aug 2026 06:57:17 +0200 Subject: [PATCH] lib.FileContext: Interpolate path in _is_dir() _is_dir() logs a DEBUG message when _stat() is not implemented and it must guess from the trailing slash whether a path is a directory. The second part of that message is a plain string rather than an f-string, so '{path}' is logged verbatim instead of the path. Make it an f-string so the path is interpolated. Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.84.2 Signed-off-by: Jan Lindemann --- src/python/jw/pkg/lib/FileContext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/jw/pkg/lib/FileContext.py b/src/python/jw/pkg/lib/FileContext.py index 059152d7..2622e7e8 100644 --- a/src/python/jw/pkg/lib/FileContext.py +++ b/src/python/jw/pkg/lib/FileContext.py @@ -287,7 +287,7 @@ class FileContext(abc.ABC): DEBUG, ( f"{self.log_name} doesn't implement stat(), judging by trailing " - 'slash if {path} is a directory' + f'slash if {path} is a directory' ), ) return path[-1] == '/'