Skip to content

Commit b0b88f9

Browse files
ricardomommtiangolo
authored andcommitted
🔊 Raise from previous exception (fastapi#195)
1 parent 49d33f9 commit b0b88f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastapi/routing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async def app(request: Request) -> Response:
6161
logging.error(f"Error getting request body: {e}")
6262
raise HTTPException(
6363
status_code=400, detail="There was an error parsing the body"
64-
)
64+
) from e
6565
values, errors, background_tasks = await solve_dependencies(
6666
request=request, dependant=dependant, body=body
6767
)

0 commit comments

Comments
 (0)