mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-25 00:38:01 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user