Use builtin TimeoutError [o-s] (#109682)

This commit is contained in:
Marc Mueller 2024-02-05 12:14:37 +01:00 committed by GitHub
parent cd0ee98dba
commit 438d3b01b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
94 changed files with 117 additions and 169 deletions

View file

@ -75,7 +75,7 @@ async def handle_webhook(hass, webhook_id, request):
try:
async with asyncio.timeout(5):
data = dict(await request.post())
except (asyncio.TimeoutError, aiohttp.web.HTTPException) as error:
except (TimeoutError, aiohttp.web.HTTPException) as error:
_LOGGER.error("Could not get information from POST <%s>", error)
return