From a700e5df418fbc2ee5702975d977b9a03f550cd5 Mon Sep 17 00:00:00 2001 From: chris48s Date: Fri, 25 Oct 2024 17:16:11 +0100 Subject: [PATCH] fix var name --- wcivf/apps/elections/devs_dc_client.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wcivf/apps/elections/devs_dc_client.py b/wcivf/apps/elections/devs_dc_client.py index 2086c04bc..284628d10 100644 --- a/wcivf/apps/elections/devs_dc_client.py +++ b/wcivf/apps/elections/devs_dc_client.py @@ -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()