Skip to content

Commit 5887227

Browse files
committed
RequestError not BadRequestError for opensearch.
1 parent b5544dd commit 5887227

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stac_fastapi/opensearch/stac_fastapi/opensearch/database_logic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ async def json_patch_collection(
12561256
refresh=True,
12571257
)
12581258

1259-
except exceptions.BadRequestError as exc:
1259+
except exceptions.RequestError as exc:
12601260

12611261
raise HTTPException(
12621262
status_code=400, detail=exc.info["error"]["caused_by"]

0 commit comments

Comments
 (0)