Commit af1a8f31 authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

Ignore schemas that fail to load

parent 5b18fc90
...@@ -21,7 +21,8 @@ class ValidatorHelper: ...@@ -21,7 +21,8 @@ class ValidatorHelper:
schema = schema_config['schema'] schema = schema_config['schema']'Loading schema %r from %r', code, schema)'Loading schema %r from %r', code, schema)
schema_instance = cls.validator.load_schema(schema) schema_instance = cls.validator.load_schema(schema)
cls.schema_dict[code] = {**schema_config, "schema_instance": schema_instance} if schema_instance:
cls.schema_dict[code] = {**schema_config, "schema_instance": schema_instance}
@classmethod @classmethod
def schema_exist(cls, schema_code): def schema_exist(cls, schema_code):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment