mail.py
branchstable
changeset 4583 356f08325072
parent 4252 6c4f109c2b03
child 4719 aaed3f813ef8
equal deleted inserted replaced
4582:d12b81facd1d 4583:356f08325072
   198                 subject = self.subject()
   198                 subject = self.subject()
   199             except SkipEmail:
   199             except SkipEmail:
   200                 continue
   200                 continue
   201             except Exception, ex:
   201             except Exception, ex:
   202                 # shouldn't make the whole transaction fail because of rendering
   202                 # shouldn't make the whole transaction fail because of rendering
   203                 # error (unauthorized or such)
   203                 # error (unauthorized or such) XXX check it doesn't actually
       
   204                 # occurs due to rollback on such error
   204                 self.exception(str(ex))
   205                 self.exception(str(ex))
   205                 continue
   206                 continue
   206             msg = format_mail(self.user_data, [emailaddr], content, subject,
   207             msg = format_mail(self.user_data, [emailaddr], content, subject,
   207                               config=self._cw.vreg.config, msgid=msgid, references=refs)
   208                               config=self._cw.vreg.config, msgid=msgid, references=refs)
   208             yield [emailaddr], msg
   209             yield [emailaddr], msg