[ckan-changes] commit/ckan: amercader: #1304 Show more descriptive error messages when sending emails

Bitbucket commits-noreply at bitbucket.org
Thu Sep 1 16:02:28 UTC 2011


1 new changeset in ckan:

http://bitbucket.org/okfn/ckan/changeset/8be519610e71/
changeset:   8be519610e71
user:        amercader
date:        2011-09-01 18:02:04
summary:     #1304 Show more descriptive error messages when sending emails
affected #:  1 file (19 bytes)

--- a/ckan/lib/mailer.py	Thu Sep 01 14:21:46 2011 +0100
+++ b/ckan/lib/mailer.py	Thu Sep 01 17:02:04 2011 +0100
@@ -44,8 +44,9 @@
         server.sendmail(mail_from, [recipient_email], msg.as_string())
         server.quit()
     except Exception, e:
-        log.exception(e)
-        raise MailerException(e.message)
+        msg = '%r' % e
+        log.exception(msg)
+        raise MailerException(msg)
 
 def mail_recipient(recipient_name, recipient_email, subject, 
         body, headers={}):

Repository URL: https://bitbucket.org/okfn/ckan/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list