Commit 021199a2 authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

use str(..) instead of ....__str__()

parent 680ba615
......@@ -60,7 +60,7 @@ if config.CONFIG:
name = section.name
log.info('Initializing homepage section "{}"...'.format(name))
if section.catalog:
catalog_ref = section.catalog.__str__() if isinstance(section.catalog, HttpUrl) else section.catalog.dict()
catalog_ref = str(section.catalog) if isinstance(section.catalog, HttpUrl) else section.catalog.dict()
schema_catalog_registry.add_ref(name, catalog_ref)
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