From d3761b23ec0a3c57441d3897662b1ae4cde010b0 Mon Sep 17 00:00:00 2001 From: Kevin Fronczak Date: Wed, 8 Jul 2020 17:57:56 +0000 Subject: [PATCH] Remove reference to response on exception since it may be unbound --- blinkpy/auth.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/blinkpy/auth.py b/blinkpy/auth.py index e5be63ac..7d72645b 100644 --- a/blinkpy/auth.py +++ b/blinkpy/auth.py @@ -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(