Skip to content

Commit

Permalink
link to issue #5 added
Browse files Browse the repository at this point in the history
  • Loading branch information
konstntokas committed Apr 30, 2024
1 parent 15c46c8 commit e9ff7c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xcube_stac/stac.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ def __init__(

# if STAC catalog is not searchable, pystac_client
# falls back to pystac; to prevent warnings from pystac_client
# use catalog from pystac instead.
# use catalog from pystac instead. For more discussion refer to
# https://github.com/xcube-dev/xcube-stac/issues/5
catalog = pystac_client.Client.open(url)
if not catalog.conforms_to("ITEM_SEARCH"):
catalog = pystac.Catalog.from_file(url)
Expand Down

0 comments on commit e9ff7c5

Please sign in to comment.