diff --git a/progit/notify.py b/progit/notify.py index 9d44947..5b26921 100644 --- a/progit/notify.py +++ b/progit/notify.py @@ -81,7 +81,7 @@ New comment: ) mail_to = set([cmt.user.emails[0].email for cmt in comment.issue.comments]) mail_to.add(comment.issue.project.user.emails[0].email) - if issue.assignee: + if issue.assignee and issue.assignee.emails: mail_to.add(comment.issue.assignee.emails[0].email) send_email( text,