mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
manifest validation: missing 'continue' when some key doesnt exist to try to prevent miserably crashing (#113)
This commit is contained in:
parent
5c6da773a2
commit
a640c914df
1 changed files with 1 additions and 0 deletions
|
@ -1700,6 +1700,7 @@ class Manifest(TestSuite):
|
||||||
for key, validator in keys.items():
|
for key, validator in keys.items():
|
||||||
if key not in self.manifest.get("integration", {}):
|
if key not in self.manifest.get("integration", {}):
|
||||||
yield Error(f"Missing key in the integration section: {key}")
|
yield Error(f"Missing key in the integration section: {key}")
|
||||||
|
continue
|
||||||
value = self.manifest["integration"][key]
|
value = self.manifest["integration"][key]
|
||||||
if not validator[0](value):
|
if not validator[0](value):
|
||||||
yield Error(f"Error found with key {key} in the 'integration' section: {validator[1]}, got: {value}")
|
yield Error(f"Error found with key {key} in the 'integration' section: {validator[1]}, got: {value}")
|
||||||
|
|
Loading…
Add table
Reference in a new issue