Use builtin TimeoutError [t-z] (#109683)

This commit is contained in:
Marc Mueller 2024-02-05 12:20:36 +01:00 committed by GitHub
parent 438d3b01b9
commit 8b0c9d3d18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
63 changed files with 88 additions and 122 deletions

View file

@ -136,7 +136,7 @@ class TtnDataStorage:
async with asyncio.timeout(DEFAULT_TIMEOUT):
response = await session.get(self._url, headers=self._headers)
except (asyncio.TimeoutError, aiohttp.ClientError):
except (TimeoutError, aiohttp.ClientError):
_LOGGER.error("Error while accessing: %s", self._url)
return None