summaryrefslogtreecommitdiff
path: root/kvmd/yamlconf/loader.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-06-28 18:59:36 +0300
committerDevaev Maxim <[email protected]>2019-06-28 18:59:36 +0300
commitef3c62a7af520673154233e2d3c89492ffec3195 (patch)
tree2b78c5918143eff8ef2c89484ac99fc6b7588438 /kvmd/yamlconf/loader.py
parentff270591b032cc1f8e342f20a04b84e5dbb31191 (diff)
f-strings
Diffstat (limited to 'kvmd/yamlconf/loader.py')
-rw-r--r--kvmd/yamlconf/loader.py2
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):