From 5e57640e8d66f0377b36a56d4fda7d9d5a6830e5 Mon Sep 17 00:00:00 2001 From: starkillerOG Date: Mon, 19 Feb 2024 12:11:17 +0100 Subject: [PATCH] Catch aiohttp.ClientPayloadError --- reolink_aio/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reolink_aio/api.py b/reolink_aio/api.py index 90ea0be..c8755d4 100644 --- a/reolink_aio/api.py +++ b/reolink_aio/api.py @@ -4186,7 +4186,7 @@ async def send_chunk( response.release() raise InvalidContentTypeError(f"Expected {expected_response_type}, unexpected data received: {data!r}") - except (aiohttp.ClientConnectorError, aiohttp.ClientOSError, aiohttp.ServerConnectionError) as err: + except (aiohttp.ClientConnectorError, aiohttp.ClientOSError, aiohttp.ServerConnectionError, aiohttp.ClientPayloadError) as err: if retry <= 0: _LOGGER.debug("Host %s:%s: connection error: %s", self._host, self._port, str(err)) await self.expire_session()