From 5f9455e0fdcf32c6f4c4028c899cdee9d4e3ebf6 Mon Sep 17 00:00:00 2001 From: tronikos Date: Mon, 10 Jun 2024 08:33:12 -0700 Subject: [PATCH] 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 --- homeassistant/helpers/intent.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/helpers/intent.py b/homeassistant/helpers/intent.py index d7c0f90e2f9..8af5dba29f5 100644 --- a/homeassistant/helpers/intent.py +++ b/homeassistant/helpers/intent.py @@ -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