From 237692e5bdc06a511859c104d0718394e5505bf7 Mon Sep 17 00:00:00 2001 From: Alex Leith Date: Tue, 7 Sep 2021 15:21:53 +1000 Subject: [PATCH] Return [] insead of None --- libs/stac/odc/stac/transform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/stac/odc/stac/transform.py b/libs/stac/odc/stac/transform.py index 6784ddd47..0922d5617 100644 --- a/libs/stac/odc/stac/transform.py +++ b/libs/stac/odc/stac/transform.py @@ -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