diff --git a/fastapi/exceptions.py b/fastapi/exceptions.py index a85dfa82c..310da940d 100644 --- a/fastapi/exceptions.py +++ b/fastapi/exceptions.py @@ -2,8 +2,8 @@ from typing import Any, Sequence from pydantic import ValidationError from pydantic.error_wrappers import ErrorList -from requests import Request from starlette.exceptions import HTTPException as StarletteHTTPException +from starlette.requests import Request from starlette.websockets import WebSocket