Skip to content

Commit 52438a1

Browse files
authored
Bugfix: List collection ID in NotFoundError (#420)
1 parent 226bdc0 commit 52438a1

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
@@ -98,7 +98,7 @@ async def get_collection(self, collection_id: str, **kwargs) -> Collection:
9898
)
9999
collection = await conn.fetchval(q, *p)
100100
if collection is None:
101-
raise NotFoundError(f"Collection {id} does not exist.")
101+
raise NotFoundError(f"Collection {collection_id} does not exist.")
102102

103103
collection["links"] = await CollectionLinks(
104104
collection_id=collection_id, request=request

0 commit comments

Comments
 (0)