mirror of
				https://github.com/python-kasa/python-kasa.git
				synced 2025-11-03 22:22:06 +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:
		@@ -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(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user