Skip to content

Commit

Permalink
Assume candidates aren't verified if key not found
Browse files Browse the repository at this point in the history
  • Loading branch information
symroe committed Nov 20, 2023
1 parent e812fb8 commit 5d800e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api_endpoints/v1_postcode_lookup/upstream_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def clean_ballots(self, ballots):
ballot.pop("wcivf_url", None)
ballot.pop("hustings", None)
ballot.pop("ballot_url", None)
if ballot["candidates_verified"]:
if ballot.get("candidates_verified", False):
ballot["candidates"] = self.clean_candidates(
ballot["candidates"]
)
Expand Down

0 comments on commit 5d800e4

Please sign in to comment.