Merge pull request #328 from fronzbot/remove-unbound-ref

Remove reference to response on exception since it may be unbound
This commit is contained in:
Kevin Fronczak
2020-07-08 22:46:29 -04:00
committed by GitHub
+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(