mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Gotta catch them all...
This commit is contained in:
parent
2e2e627894
commit
b393d55ebd
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ def read_yaml(file_path):
|
||||||
# Try to load yaml to check if it's syntaxically correct
|
# Try to load yaml to check if it's syntaxically correct
|
||||||
try:
|
try:
|
||||||
loaded_yaml = yaml.safe_load(file_content)
|
loaded_yaml = yaml.safe_load(file_content)
|
||||||
except ValueError as e:
|
except Exception as e:
|
||||||
raise MoulinetteError('corrupted_yaml', ressource=file_path, error=str(e))
|
raise MoulinetteError('corrupted_yaml', ressource=file_path, error=str(e))
|
||||||
|
|
||||||
return loaded_yaml
|
return loaded_yaml
|
||||||
|
|
Loading…
Add table
Reference in a new issue