Update notifications.py
This commit is contained in:
parent
f9166bd95a
commit
4efbf49664
@ -133,8 +133,8 @@ class SMTP(object):
|
|||||||
|
|
||||||
no_title_str = 'New comment'
|
no_title_str = 'New comment'
|
||||||
if uwsgi:
|
if uwsgi:
|
||||||
uwsgi.spool({b"subject": thread['title'].encode("utf-8") if not thread['title'] is None else no_title_str.encode("utf-8"),
|
uwsgi.spool({b"subject": thread["title"].encode("utf-8"),
|
||||||
b"body": body.encode("utf-8")})
|
b"body": body.encode("utf-8")})
|
||||||
else:
|
else:
|
||||||
start_new_thread(self._retry, (thread["title"], body))
|
start_new_thread(self._retry, (thread["title"], body))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user