From 34c52470708240ae1bc85d07b72618cd0bcd3fb7 Mon Sep 17 00:00:00 2001 From: Jason Cox Date: Sun, 17 Dec 2023 22:54:55 -0800 Subject: [PATCH] Fix log bug --- pypowerwall/cloud.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pypowerwall/cloud.py b/pypowerwall/cloud.py index 719194e..29f2ff0 100644 --- a/pypowerwall/cloud.py +++ b/pypowerwall/cloud.py @@ -91,7 +91,7 @@ def connect(self): try: self.tesla.fetch_token(authorization_response=self.tesla.authorization_url(state=state, code_verifier=code_verifier)) except Exception as err: - log.error(f"ERROR: Login failure - {repr(err)}") + log.error("ERROR: Login failure - ",err) return False else: # Enable retries @@ -625,7 +625,7 @@ def setup(self): # Update the Tesla User self.email = TUSER - + # Create retry instance for use after successful login retry = Retry(total=2, status_forcelist=(500, 502, 503, 504), backoff_factor=10)