Fix faulty check for parent comment

This commit is contained in:
Pelle Nilsson 2018-04-15 19:26:44 +02:00
parent c9045f5b1f
commit da6bb0cec7

View File

@ -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"]: