Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

email sending occasionally breaks #4

Open
basilleaf opened this issue Apr 15, 2015 · 0 comments
Open

email sending occasionally breaks #4

basilleaf opened this issue Apr 15, 2015 · 0 comments

Comments

@basilleaf
Copy link
Member

on the headline maybe? checkit:

email sent
Traceback (most recent call last):
File "topstories.py", line 145, in
topstories = update_topstories()
File "topstories.py", line 138, in update_topstories
send_email_update(new_top_stories)
File "topstories.py", line 36, in send_email_update
send_email(subject, msg, ADMIN_EMAIL)
File "/app/util.py", line 15, in send_email
msg = MIMEText(body)
File "/app/.heroku/python/lib/python2.7/email/mime/text.py", line 30, in init
self.set_payload(_text, _charset)
File "/app/.heroku/python/lib/python2.7/email/message.py", line 226, in set_payload
self.set_charset(charset)
File "/app/.heroku/python/lib/python2.7/email/message.py", line 262, in set_charset
self._payload = self._payload.encode(charset.output_charset)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 7: ordinal not in range(128)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant