Skip to content

Commit d8da107

Browse files
committed
Added a guard against trying to fetch ad positions when there's no active ballot.
- Legacy-Id: 9722
1 parent 56ca340 commit d8da107

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/doc/views_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def document_main(request, name, rev=None):
478478
content = get_document_content(filename, pathname, split=False, markup=True)
479479

480480
ballot_summary = None
481-
if doc.get_state_slug() in ("iesgeval"):
481+
if doc.get_state_slug() in ("iesgeval") and doc.active_ballot():
482482
ballot_summary = needed_ballot_positions(doc, doc.active_ballot().active_ad_positions().values())
483483

484484
table_rows = dict(doc=4, wg=2, iesg=3)

0 commit comments

Comments
 (0)