diff --git a/progit/lib/notify.py b/progit/lib/notify.py index a6ea2ca..93f22d9 100644 --- a/progit/lib/notify.py +++ b/progit/lib/notify.py @@ -270,8 +270,8 @@ Cancelled pull-request: mail_to = set([cmt.user.emails[0].email for cmt in request.comments]) mail_to.add(request.repo.user.emails[0].email) for prouser in request.repo.users: - if prouser.user.emails: - mail_to.add(prouser.user.emails[0].email) + if prouser.emails: + mail_to.add(prouser.emails[0].email) send_email( text,