# HG changeset patch # User Sylvain Thénault # Date 1259748280 -3600 # Node ID 8cbf18c703bee4f869a5a9d1dde14d5158675288 # Parent 505025eb0d377d03465fcbf7999bc2dfa5f6b676 don't fail on error while render a notification mail diff -r 505025eb0d37 -r 8cbf18c703be common/mail.py --- a/common/mail.py Tue Dec 01 19:29:56 2009 +0100 +++ b/common/mail.py Wed Dec 02 11:04:40 2009 +0100 @@ -198,6 +198,11 @@ subject = self.subject() except SkipEmail: continue + except Exception, ex: + # shouldn't make the whole transaction fail because of rendering + # error (unauthorized or such) + self.exception(str(ex)) + continue msg = format_mail(self.user_data, [emailaddr], content, subject, config=self.config, msgid=msgid, references=refs) yield [emailaddr], msg