From 5619f7448d6dc0de7cbba0c703c70c0d5e5a351b Mon Sep 17 00:00:00 2001 From: Findeton Date: Thu, 4 Apr 2024 14:18:07 -0500 Subject: [PATCH] wip --- iam/api/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iam/api/tasks.py b/iam/api/tasks.py index c8df781c..f7bd6ea5 100644 --- a/iam/api/tasks.py +++ b/iam/api/tasks.py @@ -360,8 +360,8 @@ def update_tally_status(auth_event): ballot_box_request.text ) updated_election = parse_json_request(ballot_box_request) - tally_state = updated_election['payload']['tally_state'] - election_state = updated_election['payload']['state'] + tally_state = updated_election['payload']['tally_state'] if 'tally_state' in updated_election['payload'] else None + election_state = updated_election['payload']['state'] if 'state' in updated_election['payload'] else None if ('tally_error' == tally_state or \ (election_state in ['stopped', 'started']) and not settings.ENABLE_MULTIPLE_TALLIES):