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