mirror of https://github.com/tiangolo/fastapi.git
🎨 Auto format
This commit is contained in:
parent
27b7ad009d
commit
56e3ec5ed7
|
|
@ -350,9 +350,7 @@ def get_request_handler(
|
|||
)
|
||||
errors = solved_result.errors
|
||||
if errors:
|
||||
raise RequestValidationError(
|
||||
errors, body=body, endpoint_ctx=endpoint_ctx
|
||||
)
|
||||
raise RequestValidationError(errors, body=body, endpoint_ctx=endpoint_ctx)
|
||||
|
||||
raw_response = await run_endpoint_function(
|
||||
dependant=dependant,
|
||||
|
|
@ -364,9 +362,7 @@ def get_request_handler(
|
|||
raw_response.background = solved_result.background_tasks
|
||||
return raw_response
|
||||
|
||||
response_args: Dict[str, Any] = {
|
||||
"background": solved_result.background_tasks
|
||||
}
|
||||
response_args: Dict[str, Any] = {"background": solved_result.background_tasks}
|
||||
# If status_code was set, use it, otherwise use the default from the
|
||||
# response class, in the case of redirect it's 307
|
||||
if solved_result.response.status_code:
|
||||
|
|
|
|||
Loading…
Reference in New Issue