Update notifications.py

pull/429/head
Chris Hutchison 6 years ago committed by GitHub
parent ea017296db
commit 9ded4928db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save