diff --git a/pycsw/ogc/api/records.py b/pycsw/ogc/api/records.py index 238297260..f9d35e42a 100644 --- a/pycsw/ogc/api/records.py +++ b/pycsw/ogc/api/records.py @@ -1021,13 +1021,12 @@ def get_collection_info(self, collection_name: str = 'metadata:main', if 'federatedcatalogues' in self.config: LOGGER.debug('Adding federated catalogues') collection_info['federatedCatalogues'] = [] - if not self.config['federatedcatalogues']: # if empty in config - self.config['federatedcatalogues'] = [] - for fc in self.config.get('federatedcatalogues', []): - collection_info['federatedCatalogues'].append({ - 'type': 'OGC API - Records', - 'url': fc - }) + if self.config.get('federatedcatalogues') not in [None,""]: # if empty in config + for fc in self.config.get('federatedcatalogues'): + collection_info['federatedCatalogues'].append({ + 'type': 'OGC API - Records', + 'url': fc + }) return collection_info