Skip to content

Commit

Permalink
style: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Feb 20, 2021
1 parent 413b585 commit 7263df4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions teslajsonpy/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ async def get_authorization_code(
) -> Text:
"""Get authorization code from the oauth3 login method."""
# https://tesla-api.timdorr.com/api-basics/authentication#step-2-obtain-an-authorization-code
# pylint: disable=too-many-locals
if not (email and password):
_LOGGER.debug("No email or password for login; unable to login.")
return
Expand Down
4 changes: 2 additions & 2 deletions teslajsonpy/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def valid_result(result):
result = await wrapped(*args, **kwargs)
except TeslaException as ex:
_LOGGER.debug(
"Exception: %s\n%s(%s %s)", ex.message, wrapped.__name__, args, kwargs
"Exception: %s\n%s(%s %s)", str(ex), wrapped.__name__, args, kwargs
)
raise
if valid_result(result) or is_wake_command:
Expand Down Expand Up @@ -187,7 +187,7 @@ def valid_result(result):
)
except TeslaException as ex:
_LOGGER.debug(
"Exception: %s\n%s(%s %s)", ex.message, wrapped.__name__, args, kwargs
"Exception: %s\n%s(%s %s)", str(ex), wrapped.__name__, args, kwargs
)
raise
if valid_result(result):
Expand Down

0 comments on commit 7263df4

Please sign in to comment.