mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-20 23:56:30 +00:00
fix fetch time bug
This commit is contained in:
parent
29ac861b87
commit
f9500f6d90
@ -27,9 +27,12 @@ async def fetch_current_versions(websession, beta=False):
|
|||||||
async with websession.get(url) as request:
|
async with websession.get(url) as request:
|
||||||
return await request.json(content_type=None)
|
return await request.json(content_type=None)
|
||||||
|
|
||||||
except (ValueError, aiohttp.ClientError, asyncio.TimeoutError) as err:
|
except (aiohttp.ClientError, asyncio.TimeoutError, KeyError) as err:
|
||||||
_LOGGER.warning("Can't fetch versions from %s! %s", url, err)
|
_LOGGER.warning("Can't fetch versions from %s! %s", url, err)
|
||||||
|
|
||||||
|
except json.JSONDecoder as err:
|
||||||
|
_LOGGER.warning("Can't parse versions from %s! %s", url, err)
|
||||||
|
|
||||||
|
|
||||||
def get_arch_from_image(image):
|
def get_arch_from_image(image):
|
||||||
"""Return arch from hassio image name."""
|
"""Return arch from hassio image name."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user