Skip to content

Commit

Permalink
safeguard STAC collection links (#1610)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis authored Apr 3, 2024
1 parent f94ad37 commit f71c347
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pygeoapi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f71c347

Please sign in to comment.