Skip to content

Commit 94a83b4

Browse files
committed
Account for null features.
See stac-utils/pgstac#45
1 parent 675115d commit 94a83b4

File tree

1 file changed

+1
-1
lines changed
  • stac_fastapi/pgstac/stac_fastapi/pgstac

1 file changed

+1
-1
lines changed

stac_fastapi/pgstac/stac_fastapi/pgstac/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ async def _search_base(
129129
collection = ItemCollection(**items)
130130
cleaned_features: List[Item] = []
131131

132-
for feature in collection["features"]:
132+
for feature in (collection.get("features") or []):
133133
feature = Item(**feature)
134134
if (
135135
search_request.fields.exclude is None

0 commit comments

Comments
 (0)