[pre-commit.ci lite] apply automatic fixes

This commit is contained in:
pre-commit-ci-lite[bot] 2026-02-20 04:23:31 +00:00 committed by GitHub
parent 3d1e48314e
commit 20d5c6d54f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -711,9 +711,7 @@ class Lexer:
elif token == TOKEN_STRING:
# try to unescape string
try:
value = _decode_escapes(
self._normalize_newlines(value_str[1:-1])
)
value = _decode_escapes(self._normalize_newlines(value_str[1:-1]))
except Exception as e:
msg = str(e).split(":")[-1].strip()
raise TemplateSyntaxError(msg, lineno, name, filename) from e