mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 13:00:11 +00:00
Add additional error handling for automation script run (#45613)
This commit is contained in:
@@ -291,6 +291,9 @@ class _ScriptRun:
|
||||
elif isinstance(exception, exceptions.ServiceNotFound):
|
||||
error_desc = "Service not found"
|
||||
|
||||
elif isinstance(exception, exceptions.HomeAssistantError):
|
||||
error_desc = "Error"
|
||||
|
||||
else:
|
||||
error_desc = "Unexpected error"
|
||||
level = _LOG_EXCEPTION
|
||||
|
||||
Reference in New Issue
Block a user