mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-24 01:06:06 +01:00
Enable raise-within-try (TRY301) rule in ruff (#123351)
This commit is contained in:
@@ -277,7 +277,7 @@ def execute(hass, filename, source, data=None, return_response=False):
|
||||
if not isinstance(restricted_globals["output"], dict):
|
||||
output_type = type(restricted_globals["output"])
|
||||
restricted_globals["output"] = {}
|
||||
raise ScriptError(
|
||||
raise ScriptError( # noqa: TRY301
|
||||
f"Expected `output` to be a dictionary, was {output_type}"
|
||||
)
|
||||
except ScriptError as err:
|
||||
|
||||
Reference in New Issue
Block a user