From: Ricardo Momm Date: Wed, 15 May 2019 10:50:58 +0000 (-0300) Subject: :loud_sound: Raise from previous exception (#195) X-Git-Tag: 0.21.0~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0b88f9d5b717cff28dd3e056e31fb6eb4fef73f;p=thirdparty%2Ffastapi%2Ffastapi.git :loud_sound: Raise from previous exception (#195) --- diff --git a/fastapi/routing.py b/fastapi/routing.py index a027b0b078..ac8192bafc 100644 --- a/fastapi/routing.py +++ b/fastapi/routing.py @@ -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 )