From 48898f9b2d981ab696dbcdfa16efa57faf10a1fd Mon Sep 17 00:00:00 2001 From: "Alan D. Tse" Date: Sat, 1 May 2021 12:34:00 -0700 Subject: [PATCH] fix: fix attribute error in debug statement --- teslajsonpy/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teslajsonpy/connection.py b/teslajsonpy/connection.py index a1ebb5e4..05bd0fb4 100644 --- a/teslajsonpy/connection.py +++ b/teslajsonpy/connection.py @@ -599,7 +599,7 @@ def get_inputs(soup: BeautifulSoup, searchfield=None) -> Dict[str, str]: def _process_resp(resp) -> Text: if resp.history: for item in resp.history: - _LOGGER.debug("%s: redirected from\n%s", item.resp.method, item.url) + _LOGGER.debug("%s: redirected from\n%s", item.request.method, item.url) url = str(resp.request.url) method = resp.request.method status = resp.status_code