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 029af86 commit 8490c6fCopy full SHA for 8490c6f
stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/core.py
@@ -106,9 +106,8 @@ async def item_collection(
106
collection = await self.get_collection(
107
collection_id=collection_id, request=request
108
)
109
- try:
110
- collection_id = collection["id"]
111
- except Exception:
+ collection_id = collection.get("id")
+ if collection_id is None:
112
raise HTTPException(status_code=404, detail="Collection not found")
113
114
search = self.database.make_search()
0 commit comments