From 37f39163d19b9d98f6707638014711145cd0b30d Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Fri, 27 Mar 2020 16:14:29 +0000 Subject: [PATCH] Prevent an exception on missing author.email.person when listing author emails. - Legacy-Id: 17554 --- ietf/doc/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/doc/models.py b/ietf/doc/models.py index 3afd513ca..1b7389687 100644 --- a/ietf/doc/models.py +++ b/ietf/doc/models.py @@ -379,7 +379,7 @@ class DocumentInfo(models.Model): best_addresses = [] for author in self.documentauthor_set.all(): if author.email: - if author.email.active: + if author.email.active or not author.email.person: best_addresses.append(author.email.address) else: best_addresses.append(author.email.person.email_address())