Skip to content

Commit 37f3916

Browse files
committed
Prevent an exception on missing author.email.person when listing author emails.
- Legacy-Id: 17554
1 parent 6fadf18 commit 37f3916

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/doc/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def author_list(self):
379379
best_addresses = []
380380
for author in self.documentauthor_set.all():
381381
if author.email:
382-
if author.email.active:
382+
if author.email.active or not author.email.person:
383383
best_addresses.append(author.email.address)
384384
else:
385385
best_addresses.append(author.email.person.email_address())

0 commit comments

Comments
 (0)