mirror of https://github.com/tiangolo/fastapi.git
fix: handle None value in parameter validation
This commit is contained in:
parent
1e09ed662d
commit
fcb87729c9
|
|
@ -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…
Reference in New Issue