Skip to content

Commit

Permalink
do not fail if fedcats is empty in config
Browse files Browse the repository at this point in the history
  • Loading branch information
pvgenuchten committed Jan 30, 2024
1 parent ac81aa8 commit 403bd43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pycsw/ogc/api/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,8 @@ 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',
Expand Down

0 comments on commit 403bd43

Please sign in to comment.