Skip to content

Commit

Permalink
Improve debug handling
Browse files Browse the repository at this point in the history
  • Loading branch information
b-rowan authored Sep 17, 2024
1 parent 0f22bd1 commit d45dc8c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions custom_components/miner/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,8 @@ async def _async_update_data(self):
pyasic.DataOptions.FANS,
]
)

except pyasic.APIError as err:
raise UpdateFailed("API Error") from err

except Exception as err:
raise UpdateFailed("Unknown Error") from err
raise UpdateFailed from err

_LOGGER.debug(f"Got data: {miner_data}")

Expand Down

0 comments on commit d45dc8c

Please sign in to comment.