Gotta catch them all...

This commit is contained in:
Alexandre Aubin 2019-08-05 18:01:05 +02:00
parent 7740e3e49d
commit 68d786d2c1

View file

@ -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