From 403e021d1322c8be59164b180ddde41e69a7402c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 05 2015 10:40:48 +0000 Subject: Make sure the assignee has an email (although it should always in real life) --- 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,