Skip to content

Commit

Permalink
Remove reference to response on exception since it may be unbound
Browse files Browse the repository at this point in the history
  • Loading branch information
fronzbot committed Jul 8, 2020
1 parent 391373b commit d3761b2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions blinkpy/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,7 @@ def query(
return self.validate_response(response, json_resp)
except (exceptions.ConnectionError, exceptions.Timeout):
_LOGGER.error(
"Connection error. Endpoint %s possibly down or throttled. %s: %s",
url,
response.status_code,
response.reason,
"Connection error. Endpoint %s possibly down or throttled.", url,
)
except BlinkBadResponse:
_LOGGER.error(
Expand Down

0 comments on commit d3761b2

Please sign in to comment.