Skip to content

Commit 317aac9

Browse files
committed
Fixed a place where a missing document author email address could cause a server 500. There may be additional places needing attention, now that we're not inserting dummy addresses.
- Legacy-Id: 13566
1 parent 356fa71 commit 317aac9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/doc/views_doc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,9 +992,10 @@ def extract_name(s):
992992
data["state"] = extract_name(doc.get_state())
993993
data["intended_std_level"] = extract_name(doc.intended_std_level)
994994
data["std_level"] = extract_name(doc.std_level)
995+
debug.pprint('list(doc.documentauthor_set.all().select_related("person", "email").order_by("order") )')
995996
data["authors"] = [
996997
dict(name=author.person.name,
997-
email=author.email.address,
998+
email=author.email.address if author.email else None,
998999
affiliation=author.affiliation)
9991000
for author in doc.documentauthor_set.all().select_related("person", "email").order_by("order")
10001001
]

0 commit comments

Comments
 (0)