Skip to content

Commit f682e12

Browse files
authored
Better debug message for authentication errors (#3)
1 parent cde1eef commit f682e12

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

openevsehttp/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def send_command(self, command: str) -> tuple | None:
6262
_LOGGER.debug("JSON error: %s", value.text)
6363
raise ParseJSONError
6464
if value.status_code == 401:
65-
_LOGGER.debug("Authentication error: %s", value.text)
65+
_LOGGER.debug("Authentication error: %s", value)
6666
raise AuthenticationError
6767

6868
if "ret" not in value.json():
@@ -82,7 +82,7 @@ def update(self) -> None:
8282
value = requests.get(url)
8383

8484
if value.status_code == 401:
85-
_LOGGER.debug("Authentication error: %s", value.text)
85+
_LOGGER.debug("Authentication error: %s", value)
8686
raise AuthenticationError
8787

8888
if "/status" in url:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
PROJECT_DIR = Path(__file__).parent.resolve()
77
README_FILE = PROJECT_DIR / "README.md"
8-
VERSION = "0.1.3"
8+
VERSION = "0.1.4"
99

1010

1111
setup(

0 commit comments

Comments
 (0)