mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
Ensure http delay logic works during default login attempt (#959)
Ensures retryable exceptions are raised on failure to login with default login credentials.
This commit is contained in:
parent
40e40522f9
commit
5befe51c42
@ -28,6 +28,8 @@ from .exceptions import (
|
||||
DeviceError,
|
||||
KasaException,
|
||||
SmartErrorCode,
|
||||
TimeoutError,
|
||||
_ConnectionError,
|
||||
_RetryableError,
|
||||
)
|
||||
from .httpclient import HttpClient
|
||||
@ -220,7 +222,7 @@ class AesTransport(BaseTransport):
|
||||
"%s: logged in with default credentials",
|
||||
self._host,
|
||||
)
|
||||
except AuthenticationError:
|
||||
except (AuthenticationError, _ConnectionError, TimeoutError):
|
||||
raise
|
||||
except Exception as ex:
|
||||
raise KasaException(
|
||||
|
Loading…
Reference in New Issue
Block a user