Skip to content

Commit

Permalink
Catch one more connection exception (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
chemelli74 authored Dec 31, 2024
1 parent 2213111 commit 6e05d2d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion aioshelly/rpc_device/wsrpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,12 @@ async def _rx_msgs(self) -> None:
self._port,
err,
)
except ConnectionClosed:
except (ConnectionClosed, client_exceptions.ClientConnectionResetError):
_LOGGER.debug(
"Connection issue with device %s:%s",
self._ip_address,
self._port,
)
break
except Exception:
_LOGGER.exception("Unexpected error while receiving message")
Expand Down

0 comments on commit 6e05d2d

Please sign in to comment.