diff --git a/CHANGELOG.md b/CHANGELOG.md index f08d4f6..ae5b558 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# 0.0.21 + + * Fixed bug in handling session configuration in new login procedure. + +# 0.0.20 + + * Added support for new login procedure in "unixxx" subdomains. + # 0.0.14 * Fixed login issue with subdomain "intl" diff --git a/setup.cfg b/setup.cfg index 33b2f68..40683fc 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = fusion_solar_py -version = 0.0.20 +version = 0.0.21 author = Johannes Griss author_email = johannes.griss@meduniwien.ac.at description = A simply API to the Huawei Fusion Solar web interface. diff --git a/src/fusion_solar_py/client.py b/src/fusion_solar_py/client.py index 6020f19..21631a2 100644 --- a/src/fusion_solar_py/client.py +++ b/src/fusion_solar_py/client.py @@ -385,7 +385,7 @@ def _configure_session(self): self._session.headers["roarand"] = r.json()[ "csrfToken" ] # needed for post requests, otherwise it will return 401 - except json.JSONDecodeError: + except Exception: # this currently does not work in the new login procedure pass