Catch connection reset error (#65027)

pull/65442/head
Paulus Schoutsen 2022-01-27 02:02:27 -08:00
parent 057f1a701f
commit 662ec1377a
1 changed files with 5 additions and 1 deletions

View File

@ -154,7 +154,11 @@ class HassIOIngress(HomeAssistantView):
async for data in result.content.iter_chunked(4096):
await response.write(data)
except (aiohttp.ClientError, aiohttp.ClientPayloadError) as err:
except (
aiohttp.ClientError,
aiohttp.ClientPayloadError,
ConnectionResetError,
) as err:
_LOGGER.debug("Stream error %s / %s: %s", token, path, err)
return response