Support variables in templates with timeout (#66990)
This commit is contained in:
parent
0dfc4ec9be
commit
8ea6cbc257
2 changed files with 33 additions and 1 deletions
|
@ -346,7 +346,7 @@ async def handle_render_template(
|
|||
if timeout:
|
||||
try:
|
||||
timed_out = await template_obj.async_render_will_timeout(
|
||||
timeout, strict=msg["strict"]
|
||||
timeout, variables, strict=msg["strict"]
|
||||
)
|
||||
except TemplateError as ex:
|
||||
connection.send_error(msg["id"], const.ERR_TEMPLATE_ERROR, str(ex))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue