Skip to content

Commit

Permalink
fix: add better logging when unexpected error is recieved during config
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeFoodPixels committed Feb 25, 2024
1 parent a8601bb commit 79892aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/robovac/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ async def async_step_user(
errors["base"] = "cannot_connect"
except InvalidAuth:
errors["base"] = "invalid_auth"
except Exception: # pylint: disable=broad-except
_LOGGER.exception("Unexpected exception")
except Exception as e: # pylint: disable=broad-except
_LOGGER.exception("Unexpected exception: {}".format(e))
errors["base"] = "unknown"
else:
await self.async_set_unique_id(unique_id)
Expand Down

0 comments on commit 79892aa

Please sign in to comment.