From f8f0b63235a8b963ffecefebd90e7535ad153bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andy=20M=C3=A9ry?= Date: Tue, 28 Feb 2023 12:22:47 +0100 Subject: [PATCH] fix: small error in code found by pylance --- scaleway_functions_python/testing/serving.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scaleway_functions_python/testing/serving.py b/scaleway_functions_python/testing/serving.py index 7324821..1b58c61 100644 --- a/scaleway_functions_python/testing/serving.py +++ b/scaleway_functions_python/testing/serving.py @@ -68,7 +68,7 @@ def emulate_core_preprocess(self, req: "FlaskRequest") -> None: self.logger.warning( "Request is too big, should not exceed %s Mb but is %s Mb", MAX_CONTENT_LENGTH / (1 << 20), - request.content_length / (1 << 20), + req.content_length / (1 << 20), ) if req.path in ["/favicon.ico", "/robots.txt"]: self.logger.warning(