Skip to content

Commit 6e05d2d

Browse files
authored
Catch one more connection exception (#743)
1 parent 2213111 commit 6e05d2d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

aioshelly/rpc_device/wsrpc.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,12 @@ async def _rx_msgs(self) -> None:
354354
self._port,
355355
err,
356356
)
357-
except ConnectionClosed:
357+
except (ConnectionClosed, client_exceptions.ClientConnectionResetError):
358+
_LOGGER.debug(
359+
"Connection issue with device %s:%s",
360+
self._ip_address,
361+
self._port,
362+
)
358363
break
359364
except Exception:
360365
_LOGGER.exception("Unexpected error while receiving message")

0 commit comments

Comments
 (0)