Skip to content

Commit

Permalink
Return [] insead of None
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgleith committed Sep 7, 2021
1 parent 57cb806 commit 237692e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/stac/odc/stac/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _get_path(asset):
for asset_name, asset in assets.items():
# If something's not a geotiff, make it an accessory
# include thumbnails in accessories
if "geotiff" not in asset.get("type") or "thumbnail" in asset.get("roles", []):
if "geotiff" not in asset.get("type", []) or "thumbnail" in asset.get("roles", []):
accessories[asset_name] = {"path": _get_path(asset)}
continue

Expand Down

0 comments on commit 237692e

Please sign in to comment.