1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Improve display of errors with no message in script trace (#108735)

This commit is contained in:
Erik Montnemery
2024-01-28 19:27:14 +01:00
committed by GitHub
parent 5818b6141a
commit 8abb4e5f52
2 changed files with 2 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ class TraceElement:
if self._variables:
result["changed_variables"] = self._variables
if self._error is not None:
result["error"] = str(self._error)
result["error"] = str(self._error) or self._error.__class__.__name__
if self._result is not None:
result["result"] = self._result
return result