Skip to content

Commit

Permalink
Log errors in Intent.async_handle (#119182)
Browse files Browse the repository at this point in the history
* Log errors in Intent.async_handle

* log exception stack trace

* Update homeassistant/helpers/intent.py

---------

Co-authored-by: Paulus Schoutsen <[email protected]>
  • Loading branch information
tronikos and balloob authored Jun 10, 2024
1 parent 30fab7b commit 5f9455e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions homeassistant/helpers/intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ async def async_handle(
except IntentError:
raise # bubble up intent related errors
except Exception as err:
_LOGGER.exception("Error handling %s", intent_type)
raise IntentUnexpectedError(f"Error handling {intent_type}") from err
return result

Expand Down

0 comments on commit 5f9455e

Please sign in to comment.