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
7740e3e49d
commit
68d786d2c1
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ def read_yaml(file_path):
|
|||
# Try to load yaml to check if it's syntaxically correct
|
||||
try:
|
||||
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))
|
||||
|
||||
return loaded_yaml
|
||||
|
|
Loading…
Add table
Reference in a new issue