Skip to content

Commit 99c01fa

Browse files
committed
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 ietf-tools#1253 Commit ready for merge - Legacy-Id: 7153
1 parent 64727c1 commit 99c01fa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/doc/views_draft.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,9 @@ def collect_email_addresses(emails, doc):
293293
if address not in emails:
294294
emails[address] = '"%s-ads"' % (doc.group.acronym)
295295
elif doc.group.type.slug == 'rg':
296-
email = doc.group.parent.role_set.filter(name='char')[0].email
297-
if email.address not in emails:
298-
emails[email.address] = '"%s"' % (email.person.name)
296+
for role in doc.group.parent.role_set.filter(name='chair'):
297+
if role.email.address not in emails:
298+
emails[role.email.address] = '"%s"' % (role.person.name)
299299
if doc.shepherd:
300300
address = doc.shepherd.email_address();
301301
if address not in emails:

0 commit comments

Comments
 (0)