Update notifications.py

This commit is contained in:
Chris Hutchison 2018-04-19 22:38:59 -04:00 committed by GitHub
parent baf445ae09
commit ea017296db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,7 @@ class SMTP(object):
body = self.format(thread, comment)
if uwsgi:
uwsgi.spool({b"subject": thread["title"].encode("utf-8"),
uwsgi.spool({b"subject": thread['title'].encode("utf-8") if 'title' in thread else 'New comment',
b"body": body.encode("utf-8")})
else:
start_new_thread(self._retry, (thread["title"], body))