Projet

Général

Profil

0001-workflows-don-t-reference-undefined-variable-in-noti.patch

Frédéric Péters, 15 août 2019 17:30

Télécharger (1,69 ko)

Voir les différences:

Subject: [PATCH] workflows: don't reference undefined variable in notification
 action (#35413)

 wcs/wf/notification.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
wcs/wf/notification.py
104 104
                    self.compute(self.title, render=False),
105 105
                    autoescape=False)
106 106
        except TemplateError as e:
107
            get_logger().error('error in template for notification title [%s], '
108
                               'mail could not be generated: %s' % (notified_url, str(e)))
107
            get_logger().error('error in template for notification title, '
108
                               'mail could not be generated: %s' % str(e))
109 109
            return
110 110

  
111 111
        try:
......
113 113
                    self.compute(self.body, render=False),
114 114
                    autoescape=False)
115 115
        except TemplateError as e:
116
            get_logger().error('error in template for notification body [%s], '
117
                               'mail could not be generated: %s' % (notified_url, str(e)))
116
            get_logger().error('error in template for notification body, '
117
                               'mail could not be generated: %s' % str(e))
118 118
            return
119 119

  
120 120
        self.post_data = {
121
-