Skip to content

Commit 1c4fe43

Browse files
committed
Request not BadRequest for opensearch.
1 parent 0274b64 commit 1c4fe43

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
@@ -1019,7 +1019,7 @@ async def json_patch_item(
10191019
refresh=True,
10201020
)
10211021

1022-
except exceptions.BadRequestError as exc:
1022+
except exceptions.RequestError as exc:
10231023
raise HTTPException(
10241024
status_code=400, detail=exc.info["error"]["caused_by"]["to_string"]
10251025
) from exc

0 commit comments

Comments
 (0)