diff --git a/json-validator.py b/json-validator.py index d57536341..b2f08e06b 100644 --- a/json-validator.py +++ b/json-validator.py @@ -29,6 +29,9 @@ def match_schema_instance( ): version = json_data["formatVersion"] except KeyError: continue + except TypeError: + # in case decoding failed + continue # match data with schema schema_name = object_type + '-v'+ version + '.json' schema = [s for s in schemas if schema_name in s]