diff options
author | Devaev Maxim <[email protected]> | 2019-06-28 18:59:36 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-06-28 18:59:36 +0300 |
commit | ef3c62a7af520673154233e2d3c89492ffec3195 (patch) | |
tree | 2b78c5918143eff8ef2c89484ac99fc6b7588438 /kvmd/yamlconf/loader.py | |
parent | ff270591b032cc1f8e342f20a04b84e5dbb31191 (diff) |
f-strings
Diffstat (limited to 'kvmd/yamlconf/loader.py')
-rw-r--r-- | kvmd/yamlconf/loader.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/yamlconf/loader.py b/kvmd/yamlconf/loader.py index c72a45dc..437d9c4a 100644 --- a/kvmd/yamlconf/loader.py +++ b/kvmd/yamlconf/loader.py @@ -36,7 +36,7 @@ def load_yaml_file(path: str) -> Any: return yaml.load(yaml_file, _YamlLoader) except Exception: # Reraise internal exception as standard ValueError and show the incorrect file - raise ValueError("Incorrect YAML syntax in file %r" % (path)) + raise ValueError(f"Incorrect YAML syntax in file {path!r}") class _YamlLoader(yaml.SafeLoader): |