From 0ad40f9ba53ee48c9922ad038091f7ef1adeeff0 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 02 2015 11:45:41 +0000 Subject: Adjust notify_new_pull_request now that we are correctly linking project and users --- diff --git a/progit/lib/notify.py b/progit/lib/notify.py index b474cc9..622e70c 100644 --- a/progit/lib/notify.py +++ b/progit/lib/notify.py @@ -194,8 +194,8 @@ New 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,