Remove reference to response on exception since it may be unbound

This commit is contained in:
Kevin Fronczak
2020-07-08 17:57:56 +00:00
parent 391373b304
commit d3761b23ec
+1 -4
View File
@@ -171,10 +171,7 @@ class Auth:
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(