Skip to content

Commit

Permalink
Merge pull request #2068 from DemocracyClub/resp20241025
Browse files Browse the repository at this point in the history
fix incorrect var name
  • Loading branch information
chris48s authored Oct 28, 2024
2 parents 5a88943 + a700e5d commit 1a8bd2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wcivf/apps/elections/devs_dc_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def make_request(self, postcode, uprn=None, **extra_params):
default_params = {"auth_token": self.API_KEY, "include_current": 1}
if extra_params:
default_params.update(**extra_params)
req = requests.get(url, params=default_params)
if req.status_code >= 400:
raise DevsDCAPIException(response=req)
return req.json()
resp = requests.get(url, params=default_params)
if resp.status_code >= 400:
raise DevsDCAPIException(response=resp)
return resp.json()

0 comments on commit 1a8bd2d

Please sign in to comment.