Skip to content

Commit

Permalink
fix: Log exception on data update
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger committed Apr 21, 2021
1 parent 6788ffc commit 4b3ec0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/weenect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async def _async_update_data(self):
self._detect_added_and_removed_trackers(data)
return data
except Exception as exception:
raise UpdateFailed() from exception
raise UpdateFailed(exception) from exception

def _detect_added_and_removed_trackers(self, data: Any):
"""Detect if trackers were added or removed."""
Expand Down

0 comments on commit 4b3ec0e

Please sign in to comment.