From da858725fd43b42255fa867fc2aa2abbec429299 Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Thu, 30 Jan 2025 12:21:15 -0400 Subject: [PATCH] fix: guard against KeyError (#8485) --- ietf/iesg/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/iesg/utils.py b/ietf/iesg/utils.py index a56fa72ce..56571dc75 100644 --- a/ietf/iesg/utils.py +++ b/ietf/iesg/utils.py @@ -33,7 +33,7 @@ def telechat_page_count(date=None, docs=None, ad=None): ballot = draft.active_ballot() if ballot: positions = ballot.active_balloter_positions() - ad_position = positions[ad] + ad_position = positions.get(ad, None) if ad_position is None or ad_position.pos_id == "norecord": ad_pages_left_to_ballot_on += draft.pages or 0