workflows: don't fail on incomplete global anchor date template (#52785)

This commit is contained in:
Frédéric Péters 2021-04-06 17:28:51 +02:00
parent a407b21008
commit 5539d1997f
1 changed files with 1 additions and 1 deletions

View File

@ -1294,7 +1294,7 @@ class WorkflowGlobalActionTimeoutTrigger(WorkflowGlobalActionTrigger):
anchor_date = evolution.time
else:
break
elif self.anchor == 'template':
elif self.anchor == 'template' and self.anchor_template:
variables = get_publisher().substitutions.get_context_variables(mode='lazy')
anchor_date = Template(self.anchor_template, autoescape=False).render(variables)
elif self.anchor == 'python':