Skip to content

Commit

Permalink
Handle UnicodeDecodeError (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouwh authored Jul 1, 2024
1 parent 6233383 commit 51e50b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion incomfortclient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ async def heaters(self, force_refresh: bool = None) -> list[Heater]:

try:
heaters = dict(await self._get("heaterlist.json"))[HEATERLIST]
except aiohttp.ClientError as exc:
except (aiohttp.ClientError, UnicodeDecodeError) as exc:
raise InvalidGateway(exc) from exc

self._heaters = [
Expand Down

0 comments on commit 51e50b8

Please sign in to comment.