workflows: don't reference undefined variable in notification action (#35413)
This commit is contained in:
parent
970aa5b029
commit
0eeebc6573
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue