Skip to content

Commit 117eac0

Browse files
committed
Be a bit more careful with handling the submitter info as well as it
turns out there are some (although apparently all old) entries with author_order = 0 - Legacy-Id: 4015
1 parent 3ebee25 commit 117eac0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ietf/submit/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ def perform_postREDESIGN(request, submission):
141141
update_authors(draft, submission)
142142

143143
# new revision event
144-
try:
145-
a = submission.tempidauthors_set.get(author_order=0)
146-
submitter = ensure_person_email_info_exists(a).person
147-
except TempIdAuthors.DoesNotExist:
144+
a = submission.tempidauthors_set.filter(author_order=0)
145+
if a:
146+
submitter = ensure_person_email_info_exists(a[0]).person
147+
else:
148148
submitter = system
149149

150150
e = NewRevisionDocEvent(type="new_revision", doc=draft, rev=draft.rev)

0 commit comments

Comments
 (0)