From da6bb0cec78974a8b4c07b93e020227f74be318a Mon Sep 17 00:00:00 2001 From: Pelle Nilsson Date: Sun, 15 Apr 2018 19:26:44 +0200 Subject: [PATCH] Fix faulty check for parent comment --- 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 1efd451..5a2f1a3 100644 --- a/isso/ext/notifications.py +++ b/isso/ext/notifications.py @@ -136,7 +136,7 @@ class SMTP(object): return rv.read() def notify(self, thread, comment): - if "parent" in comment: + if "parent" in comment and comment["parent"] is not None: comment_parent = self.isso.db.comments.get(comment["parent"]) # Notify the author that a new comment is posted if requested if comment_parent and "email" in comment_parent and comment_parent["notification"]: