workflows: don't reference undefined variable in notification action (#35413)

This commit is contained in:
Frédéric Péters 2019-08-15 17:29:49 +02:00
parent 970aa5b029
commit 0eeebc6573
1 changed files with 4 additions and 4 deletions

View File

@ -104,8 +104,8 @@ class SendNotificationWorkflowStatusItem(WebserviceCallStatusItem):
self.compute(self.title, render=False),
autoescape=False)
except TemplateError as e:
get_logger().error('error in template for notification title [%s], '
'mail could not be generated: %s' % (notified_url, str(e)))
get_logger().error('error in template for notification title, '
'mail could not be generated: %s' % str(e))
return
try:
@ -113,8 +113,8 @@ class SendNotificationWorkflowStatusItem(WebserviceCallStatusItem):
self.compute(self.body, render=False),
autoescape=False)
except TemplateError as e:
get_logger().error('error in template for notification body [%s], '
'mail could not be generated: %s' % (notified_url, str(e)))
get_logger().error('error in template for notification body, '
'mail could not be generated: %s' % str(e))
return
self.post_data = {