From 68d786d2c1319141c06994b4f373258e24d9922d Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 5 Aug 2019 18:01:05 +0200 Subject: [PATCH 1/2] 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 From 3cade1519450945a3fa43fc15643e55fbeb5ea10 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 5 Aug 2019 18:41:20 +0200 Subject: [PATCH 2/2] Update changelog for 3.6.4.1 --- debian/changelog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index f4e5ce36..247b6012 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +moulinette (3.6.4.1) stable; urgency=low + + - [fix] Catch all exceptions in read_yaml helper + + -- Alexandre Aubin Mon, 06 Aug 2019 18:40:00 +0000 + moulinette (3.6.4) stable; urgency=low Bumping version number for stable release