Skip to content

Commit 6baf0d1

Browse files
only when asset is None
1 parent 774af36 commit 6baf0d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pystac/extensions/eo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def get_bands(self, asset=None):
6767
bands = self.item.properties.get('eo:bands')
6868

6969
# get assets with eo:bands even if not in item
70-
if bands is None:
70+
if asset is None and bands is None:
7171
bands = []
7272
for (key, value) in self.item.get_assets().items():
7373
if 'eo:bands' in value.properties:

0 commit comments

Comments
 (0)