diff --git a/litestar/middleware/_internal/exceptions/middleware.py b/litestar/middleware/_internal/exceptions/middleware.py index 14db20a9f0..cab22dc2b7 100644 --- a/litestar/middleware/_internal/exceptions/middleware.py +++ b/litestar/middleware/_internal/exceptions/middleware.py @@ -191,7 +191,7 @@ async def handle_request_exception( exception_handler = get_exception_handler(exception_handlers, exc) or self.default_http_exception_handler request: Request[Any, Any, Any] = litestar_app.request_class(scope=scope, receive=receive, send=send) response = exception_handler(request, exc) - await response.to_asgi_response(app=None, request=request)(scope=scope, receive=receive, send=send) + await response.to_asgi_response(request=request)(scope=scope, receive=receive, send=send) @staticmethod async def handle_websocket_exception(send: Send, exc: Exception) -> None: