Reduce AuthenticationExceptions raising from transports (#740)

* Reduce AuthenticationExceptions raising from transports

* Make auth failed test ids easier to read

* Test invalid klap response length
This commit is contained in:
Steven B
2024-02-05 20:49:26 +00:00
committed by GitHub
parent 215b8d4e4f
commit 6ab17d823c
3 changed files with 70 additions and 16 deletions

View File

@@ -208,9 +208,9 @@ class AesTransport(BaseTransport):
except AuthenticationException:
raise
except Exception as ex:
raise AuthenticationException(
raise SmartDeviceException(
"Unable to login and trying default "
+ "login raised another exception: %s",
+ f"login raised another exception: {ex}",
ex,
) from ex