Gotta catch them all...

This commit is contained in:
Alexandre Aubin 2019-08-05 18:01:05 +02:00
parent 2e2e627894
commit b393d55ebd

View file

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