mirror of https://github.com/tiangolo/fastapi.git
linter
This commit is contained in:
parent
cf424613b3
commit
5302f988cf
|
|
@ -351,7 +351,7 @@ def get_request_handler(
|
|||
else:
|
||||
body = body_bytes
|
||||
except json.JSONDecodeError as e:
|
||||
validation_error = RequestMalformedError(
|
||||
raise RequestMalformedError(
|
||||
[
|
||||
{
|
||||
"type": "json_invalid",
|
||||
|
|
@ -362,8 +362,7 @@ def get_request_handler(
|
|||
}
|
||||
],
|
||||
body=e.doc,
|
||||
)
|
||||
raise validation_error from e
|
||||
) from e
|
||||
except HTTPException:
|
||||
# If a middleware raises an HTTPException, it should be raised again
|
||||
raise
|
||||
|
|
|
|||
Loading…
Reference in New Issue