Skip to content

Commit

Permalink
fix var name
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Oct 25, 2024
1 parent 5a88943 commit a700e5d
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 a700e5d

Please sign in to comment.