template_parser: Fix f-string not formatted.

This commit is contained in:
PieterCK
2025-10-01 15:03:36 +07:00
committed by Alex Vandiver
parent c1a4dcf33d
commit 1400ad7307

View File

@@ -497,7 +497,7 @@ def validate(
if state.html_context == "unknown" if state.html_context == "unknown"
else "" else ""
) )
+ " at {fn} line {token.line}, col {token.col}" + f" at {fn} line {token.line}, col {token.col}"
) )
if new_context not in FOREIGN_CONTEXTS: if new_context not in FOREIGN_CONTEXTS: