From 636a26d38e69a456982e2dc72a3c32bd1c0bd67e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Sun, 21 Sep 2025 18:33:56 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Tweak=20message=20in=20ass?= =?UTF-8?q?ert=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/routing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi/routing.py b/fastapi/routing.py index dd1ddd0a9..65f739d95 100644 --- a/fastapi/routing.py +++ b/fastapi/routing.py @@ -317,7 +317,7 @@ def get_request_handler( response: Union[Response, None] = None file_stack = request.scope.get("fastapi_middleware_astack") assert isinstance(file_stack, AsyncExitStack), ( - "fastapi_astack not found in request scope" + "fastapi_middleware_astack not found in request scope" ) # Read body and auto-close files