Closed pvgenuchten closed 4 months ago
seems better to remove the full key in stead of making it empty
Thanks @pvgenuchten. Would the following work instead?
diff --git a/pycsw/ogc/api/records.py b/pycsw/ogc/api/records.py
index 83c3179e..59c077ac 100644
--- a/pycsw/ogc/api/records.py
+++ b/pycsw/ogc/api/records.py
@@ -1018,7 +1018,7 @@ class API:
}
if collection_name == 'metadata:main':
- if 'federatedcatalogues' in self.config:
+ if self.config.get('federatedcatalogues') is not None:
LOGGER.debug('Adding federated catalogues')
collection_info['federatedCatalogues'] = []
for fc in self.config.get('federatedcatalogues', []):
yes it would work, updating pr
Description
if I set federated catalogues to None, i run into this error on /collections/metadata:main, what is the best way to deactivate federated catalogues?
Environment