Tweak exception message in yaml loader (#124841)

pull/124852/head
Erik Montnemery 2024-08-29 11:31:19 +02:00 committed by GitHub
parent eac7794741
commit a4e9e4b23b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ def _include_yaml(loader: LoaderType, node: yaml.nodes.Node) -> JSON_TYPE:
return _add_reference(loaded_yaml, loader, node)
except FileNotFoundError as exc:
raise HomeAssistantError(
f"{node.start_mark}: Unable to read file {fname}."
f"{node.start_mark}: Unable to read file {fname}"
) from exc