Log errors in Intent.async_handle (#119182)

* Log errors in Intent.async_handle

* log exception stack trace

* Update homeassistant/helpers/intent.py

---------

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
pull/119309/head^2
tronikos 2024-06-10 08:33:12 -07:00 committed by GitHub
parent 30fab7b807
commit 5f9455e0fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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