diff --git a/pygeoapi/api.py b/pygeoapi/api.py index 899f5ea17..87d672cce 100644 --- a/pygeoapi/api.py +++ b/pygeoapi/api.py @@ -3954,7 +3954,8 @@ def get_stac_path(self, request: Union[APIRequest, Any], if isinstance(stac_data, dict): content.update(stac_data) - content['links'].extend(stac_collections[dataset]['links']) + content['links'].extend( + stac_collections[dataset].get('links', [])) if request.format == F_HTML: # render content['path'] = path