Fixed a typo in code that looks for the IRTF chair email address while adding replaces relationships.

Made that code slightly more robust.
Fixes ticket #1253
Commit ready for merge
 - Legacy-Id: 7153
This commit is contained in:
Robert Sparks 2014-01-21 20:53:07 +00:00
parent 64727c1c33
commit 99c01fa54a

View file

@ -293,9 +293,9 @@ def collect_email_addresses(emails, doc):
if address not in emails:
emails[address] = '"%s-ads"' % (doc.group.acronym)
elif doc.group.type.slug == 'rg':
email = doc.group.parent.role_set.filter(name='char')[0].email
if email.address not in emails:
emails[email.address] = '"%s"' % (email.person.name)
for role in doc.group.parent.role_set.filter(name='chair'):
if role.email.address not in emails:
emails[role.email.address] = '"%s"' % (role.person.name)
if doc.shepherd:
address = doc.shepherd.email_address();
if address not in emails: