]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:loud_sound: Raise from previous exception (#195)
authorRicardo Momm <ricardo18.bnu@gmail.com>
Wed, 15 May 2019 10:50:58 +0000 (07:50 -0300)
committerSebastián Ramírez <tiangolo@gmail.com>
Wed, 15 May 2019 10:50:58 +0000 (14:50 +0400)
fastapi/routing.py

index a027b0b07897a6db0c89adcfac06f83a545316f5..ac8192bafc2f5539983a8e8f3dfc74c341371997 100644 (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
         )