From a640c914dfa747675fd90902501b2a3f8076d51b Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 10 Jun 2023 23:50:05 +0200 Subject: [PATCH] manifest validation: missing 'continue' when some key doesnt exist to try to prevent miserably crashing (#113) --- package_linter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/package_linter.py b/package_linter.py index 8f02424..e7d2415 100755 --- a/package_linter.py +++ b/package_linter.py @@ -1700,6 +1700,7 @@ class Manifest(TestSuite): for key, validator in keys.items(): if key not in self.manifest.get("integration", {}): yield Error(f"Missing key in the integration section: {key}") + continue value = self.manifest["integration"][key] if not validator[0](value): yield Error(f"Error found with key {key} in the 'integration' section: {validator[1]}, got: {value}")