From 68d786d2c1319141c06994b4f373258e24d9922d 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 02066757..5c2ed8d9 100644 --- a/moulinette/utils/filesystem.py +++ b/moulinette/utils/filesystem.py @@ -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