Mercurial > kallithea
diff rhodecode/lib/rcmail/message.py @ 2452:d95ef6587bca beta
fixes #481 rhodecode emails are sent without Date header
- small code cleanup in mailing
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 13 Jun 2012 23:44:32 +0200 |
parents | 69e95ad5b6f0 |
children | 7e5f8c12a3fc |
line wrap: on
line diff
--- a/rhodecode/lib/rcmail/message.py Wed Jun 13 23:27:33 2012 +0200 +++ b/rhodecode/lib/rcmail/message.py Wed Jun 13 23:44:32 2012 +0200 @@ -3,6 +3,7 @@ from rhodecode.lib.rcmail.exceptions import BadHeaders from rhodecode.lib.rcmail.exceptions import InvalidMessage + class Attachment(object): """ Encapsulates file attachment information. @@ -134,13 +135,13 @@ """ if not self.recipients: - raise InvalidMessage, "No recipients have been added" + raise InvalidMessage("No recipients have been added") if not self.body and not self.html: - raise InvalidMessage, "No body has been set" + raise InvalidMessage("No body has been set") if not self.sender: - raise InvalidMessage, "No sender address has been set" + raise InvalidMessage("No sender address has been set") if self.is_bad_headers(): raise BadHeaders