🔊 Raise from previous exception (#195)

This commit is contained in:
Ricardo Momm 2019-05-15 07:50:58 -03:00 committed by Sebastián Ramírez
parent 49d33f9f70
commit b0b88f9d5b
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ def get_app(
logging.error(f"Error getting request body: {e}")
raise HTTPException(
status_code=400, detail="There was an error parsing the body"
)
) from e
values, errors, background_tasks = await solve_dependencies(
request=request, dependant=dependant, body=body
)