diff --git a/isso/ext/notifications.py b/isso/ext/notifications.py index f1d718f..6012c5a 100644 --- a/isso/ext/notifications.py +++ b/isso/ext/notifications.py @@ -133,8 +133,8 @@ class SMTP(object): no_title_str = 'New comment' if uwsgi: - uwsgi.spool({b"subject": thread['title'].encode("utf-8") if not thread['title'] is None else no_title_str.encode("utf-8"), - b"body": body.encode("utf-8")}) + uwsgi.spool({b"subject": thread["title"].encode("utf-8"), + b"body": body.encode("utf-8")}) else: start_new_thread(self._retry, (thread["title"], body))