From a4d7ea1f940f0314224b7c93e05aee4fe76bbd88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janek=20Nouvertn=C3=A9?= <25355197+provinzkraut@users.noreply.github.com> Date: Sat, 27 Apr 2024 09:15:17 +0200 Subject: [PATCH] Fix rebase issue --- litestar/middleware/_internal/exceptions/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: