From 4f2ee1e7703100939105317c7e84578702c70887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 9 Jun 2022 19:24:04 +0200 Subject: [PATCH] fix: Do not fail the update if a key was removed from the config --- tools/validate_config_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/validate_config_files.py b/tools/validate_config_files.py index c9950dd..93dfdfb 100755 --- a/tools/validate_config_files.py +++ b/tools/validate_config_files.py @@ -48,7 +48,7 @@ def validate_generic_config_file(): # Make sure the user config file doesn't have entries missing in the sample config for key in generic_config.keys(): if key not in generic_config_sample: - raise Exception(f'{key} is missing in the sample config file. You need to compare {user_config} with {sample_config}.') + logger.warning(f'{key} is missing in the sample config file, it was probably removed, you can do it too.') return True