Browse Source

fix: handle None value in parameter validation

pull/14527/head
Malak khoder 7 months ago
parent
commit
fcb87729c9
  1. 2
      fastapi/routing.py

2
fastapi/routing.py

@ -407,7 +407,7 @@ def get_request_handler(
raise
except Exception as e:
http_error = HTTPException(
status_code=400, detail="There was an error parsing the body"
status_code=400, detail="An error occurred while parsing the body"
)
raise http_error from e

Loading…
Cancel
Save