Skip to content

Commit 65619f2

Browse files
committed
guard docauthor fields. Commit ready to merge.
- Legacy-Id: 19026
1 parent bfad845 commit 65619f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/doc/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,8 @@ def _change_field_and_describe(auth, field, newval):
566566
author_changes = []
567567
# Now fill in other author details
568568
author_changes.append(_change_field_and_describe(auth, 'email', docauthor.email))
569-
author_changes.append(_change_field_and_describe(auth, 'affiliation', docauthor.affiliation))
570-
author_changes.append(_change_field_and_describe(auth, 'country', docauthor.country))
569+
author_changes.append(_change_field_and_describe(auth, 'affiliation', docauthor.affiliation or ''))
570+
author_changes.append(_change_field_and_describe(auth, 'country', docauthor.country or ''))
571571
author_changes.append(_change_field_and_describe(auth, 'order', order + 1))
572572
auth.save()
573573
log.assertion('auth.email_id != "none"')

0 commit comments

Comments
 (0)