mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-23 03:33:35 +00:00
handle cancellation
This commit is contained in:
parent
e0c614cf62
commit
8868c9b70d
@ -165,6 +165,7 @@ class TPLinkSmartHomeProtocol:
|
||||
self.host,
|
||||
ex,
|
||||
)
|
||||
raise
|
||||
|
||||
try:
|
||||
assert self.reader is not None # noqa: S101
|
||||
@ -188,6 +189,7 @@ class TPLinkSmartHomeProtocol:
|
||||
_LOGGER.debug(
|
||||
"BaseException during query, closing connection: %s", self.host, ex
|
||||
)
|
||||
raise
|
||||
|
||||
# make mypy happy, this should never be reached..
|
||||
await self.close()
|
||||
|
Loading…
Reference in New Issue
Block a user