From 9ded4928db76905295a24ba4a6dc261a258456c3 Mon Sep 17 00:00:00 2001 From: Chris Hutchison Date: Thu, 19 Apr 2018 22:47:55 -0400 Subject: [PATCH] Update notifications.py --- isso/ext/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isso/ext/notifications.py b/isso/ext/notifications.py index bc03993..3b61453 100644 --- a/isso/ext/notifications.py +++ b/isso/ext/notifications.py @@ -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))