Commit af1a8f31 authored by Pierre Dittgen's avatar Pierre Dittgen

Ignore schemas that fail to load

parent 5b18fc90
......@@ -21,7 +21,8 @@ class ValidatorHelper:
schema = schema_config['schema']
log.info('Loading schema %r from %r', code, 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
def schema_exist(cls, schema_code):
......
Markdown is supported
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