Tweak automation tracing (#47721)

This commit is contained in:
Erik Montnemery
2021-03-10 23:42:13 +01:00
committed by GitHub
parent 15da1c4785
commit a9a9e1f199
7 changed files with 1248 additions and 1212 deletions

View File

@@ -360,7 +360,7 @@ class _ScriptRun:
handler = f"_async_{cv.determine_script_action(self._action)}_step"
await getattr(self, handler)()
except Exception as ex:
if not isinstance(ex, (_StopScript, asyncio.CancelledError)) and (
if not isinstance(ex, _StopScript) and (
self._log_exceptions or log_exceptions
):
self._log_exception(ex)