Skip to content

Handle collections without optional item_assets property #130

Description

@anayeaye

Description

Veda-docs example stac_ipyleaflet notebook is throwing exception
'message': 'Error caught with collection', 'error': KeyError('item_assets')

Surfaced in veda-docs PR NASA-IMPACT/veda-docs#160

I think
has_cog = True if data["item_assets"] else False
could be updated to something like has_cog = True if data.get("item_assets", None) else False

AC

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions