summaryrefslogtreecommitdiff
path: root/kvmd/yamlconf/loader.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-09-18 04:37:43 +0300
committerMaxim Devaev <[email protected]>2024-09-18 04:37:43 +0300
commit7a53f1445619fc471c2823e7081de8b6039b938e (patch)
tree961dd0072cc976504fe4570743d801c79512e9a6 /kvmd/yamlconf/loader.py
parent45270a09d7b5076bac96887a1e36d752882e3adf (diff)
refactoring
Diffstat (limited to 'kvmd/yamlconf/loader.py')
-rw-r--r--kvmd/yamlconf/loader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/yamlconf/loader.py b/kvmd/yamlconf/loader.py
index 215cb526..5f879354 100644
--- a/kvmd/yamlconf/loader.py
+++ b/kvmd/yamlconf/loader.py
@@ -40,9 +40,9 @@ def load_yaml_file(path: str) -> Any:
with open(path) as file:
try:
return yaml.load(file, _YamlLoader)
- except Exception as err:
+ except Exception as ex:
# Reraise internal exception as standard ValueError and show the incorrect file
- raise ValueError(f"Invalid YAML in the file {path!r}:\n{tools.efmt(err)}") from None
+ raise ValueError(f"Invalid YAML in the file {path!r}:\n{tools.efmt(ex)}") from None
# =====