Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove now-unneccessary exception handling
  • Loading branch information
Patrick Wang authored and patrickkwang committed Apr 10, 2021
commit df4fdf0c7e092550d1e5b1633f10f41d713bbd66
3 changes: 0 additions & 3 deletions fastapi/routing.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import asyncio
import enum
import inspect
import json
from typing import (
Any,
Callable,
Expand Down Expand Up @@ -188,8 +187,6 @@ async def app(request: Request) -> Response:
body = await request.json()
else:
body = body_bytes
except json.JSONDecodeError as e:
raise RequestValidationError([ErrorWrapper(e, ("body", e.pos))], body=e.doc)
except Exception as e:
raise HTTPException(
status_code=400, detail="There was an error parsing the body"
Expand Down