Skip to content

Commit

Permalink
fix: fix attribute error in debug statement
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed May 1, 2021
1 parent 8954299 commit 48898f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teslajsonpy/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 48898f9

Please sign in to comment.