We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4311cad commit 8e3740dCopy full SHA for 8e3740d
openeo/metadata.py
@@ -853,7 +853,7 @@ def bands_from_stac_collection(
853
return self._bands_from_item_assets(collection.item_assets)
854
elif _PYSTAC_1_9_EXTENSION_INTERFACE and collection.ext.has("item_assets") and collection.ext.item_assets:
855
return self._bands_from_item_assets(collection.ext.item_assets)
856
- elif "item_assets" in collection.extra_fields:
+ elif collection.extra_fields.get("item_assets"):
857
# Workaround for lack of support for STAC 1.1 core item_assets with pystac < 1.12
858
item_assets = {
859
k: pystac.extensions.item_assets.AssetDefinition(properties=v, owner=collection)
0 commit comments