Skip to content

Commit

Permalink
Log all handled exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdwetering committed Apr 18, 2024
1 parent 37f3ec2 commit 6b372e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aiohuesyncbox/huesyncbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,12 @@ async def request(
)
return data
except aiohttp.ClientError as err:
logger.debug(err, exc_info=True)
raise RequestError(
f"Error requesting data from {self._host}"
) from err
except asyncio.TimeoutError as err:
logger.debug(err, exc_info=True)
raise RequestError(
f"Timeout requesting data from {self._host}"
) from err
Expand Down

0 comments on commit 6b372e8

Please sign in to comment.