Skip to content

Commit da85872

Browse files
fix: guard against KeyError (#8485)
1 parent d3bf0a3 commit da85872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ietf/iesg/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def telechat_page_count(date=None, docs=None, ad=None):
3333
ballot = draft.active_ballot()
3434
if ballot:
3535
positions = ballot.active_balloter_positions()
36-
ad_position = positions[ad]
36+
ad_position = positions.get(ad, None)
3737
if ad_position is None or ad_position.pos_id == "norecord":
3838
ad_pages_left_to_ballot_on += draft.pages or 0
3939

0 commit comments

Comments
 (0)