Skip to content

Commit

Permalink
Fix log bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed Dec 18, 2023
1 parent 741945a commit 34c5247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypowerwall/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 34c5247

Please sign in to comment.