This commit is contained in:
Thomas Sileo 2013-12-26 22:22:48 +01:00
parent e50ecc7811
commit a322cf673a

View File

@ -111,7 +111,7 @@ class SMTP(object):
if "parent" in comment:
comment_parent = self.isso.db.comments.get(comment["parent"])
# Notify the author that a new comment is posted if requested
if "email" in comment_parent and comment_parent["notification"]:
if comment_parent and "email" in comment_parent and comment_parent["notification"]:
body = self.format(thread, comment, admin=False)
subject = "Re: New comment posted on %s" % thread["title"]
self.sendmail(subject, body, thread, comment, to=comment_parent["email"])