Fix currency presentation and update resilience
Validate / syntax (push) Canceled after 0s

This commit is contained in:
git
2026-09-27 17:56:08 +10:00
parent 264a7dd42f
commit 4dcf2f04c5
5 changed files with 21 additions and 8 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ class UpApi:
if response.status >= 400:
raise UpApiError(f"Up API request failed ({response.status})")
return (await response.json())["data"]
except aiohttp.ClientError as err:
except (aiohttp.ClientError, TimeoutError) as err:
raise UpApiError("Unable to reach the Up API") from err
async def _list(
@@ -70,5 +70,5 @@ class UpApi:
if response.status >= 400:
raise UpApiError(f"Up API request failed ({response.status})")
return await response.json()
except aiohttp.ClientError as err:
except (aiohttp.ClientError, TimeoutError) as err:
raise UpApiError("Unable to reach the Up API") from err