Use builtin TimeoutError [o-s] (#109682)
This commit is contained in:
parent
cd0ee98dba
commit
438d3b01b9
94 changed files with 117 additions and 169 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue