From b393d55ebddbc43f5a1959aa46dc3e774d075c69 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 5 Aug 2019 18:01:05 +0200 Subject: [PATCH] Gotta catch them all... --- moulinette/utils/filesystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moulinette/utils/filesystem.py b/moulinette/utils/filesystem.py index 6796957d..f6e4f127 100644 --- a/moulinette/utils/filesystem.py +++ b/moulinette/utils/filesystem.py @@ -75,7 +75,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