Skip to content

Commit

Permalink
refactor: change bad request http status to unprocessable entity
Browse files Browse the repository at this point in the history
  • Loading branch information
Sujanadh committed Dec 9, 2024
1 parent f71110f commit 8f478ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/app/db/postgis_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ def merge_polygons(
)
except Exception as e:
raise HTTPException(
HTTPStatus.BAD_REQUEST,
HTTPStatus.UNPROCESSABLE_ENTITY,
detail=f"Couldn't merge the multipolygon to polygon: {str(e)}",
) from e

Expand Down

0 comments on commit 8f478ed

Please sign in to comment.