Commit 6e476a35 authored by Christophe Benz's avatar Christophe Benz

Allow loading catalog by file path also

parent 04fe515d
Pipeline #1070 passed with stage
in 4 minutes and 55 seconds
......@@ -41,7 +41,7 @@ if config.HOMEPAGE_CONFIG:
name = section['name']
log.info('Initializing homepage section "{}"...'.format(name))
catalog = section.get('catalog')
if catalog and isinstance(catalog, str) and catalog.startswith('http'):
if catalog and isinstance(catalog, str):
schema_catalog_map[name] = opendataschema.SchemaCatalog(catalog, session=caching_session)
log.info("...done")
......
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