From a322cf673af0aad21cd05f5c0459cb4446b5cb90 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Thu, 26 Dec 2013 22:22:48 +0100 Subject: [PATCH] Bugfix --- 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 fce0a04..decd13c 100644 --- a/isso/ext/notifications.py +++ b/isso/ext/notifications.py @@ -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"])