From 4eda290847d0bd267271fa0abf2e0de186f6f22c Mon Sep 17 00:00:00 2001 From: Adrien Kunysz Date: Tue, 13 Aug 2024 15:47:51 +0200 Subject: [PATCH] Mark f-string as such. --- app/middleware/internal_redirect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/middleware/internal_redirect.py b/app/middleware/internal_redirect.py index 7d70c064..c1c2a0d2 100644 --- a/app/middleware/internal_redirect.py +++ b/app/middleware/internal_redirect.py @@ -45,7 +45,7 @@ def process_response(self, request, response): # We don't use get_full_path_with_slash here as we only care about the path # without the query parametres. - new_path = '{request.path_info}/' + new_path = f'{request.path_info}/' self.logger.info('Internal redirect %s -> %s', request.path_info, new_path) request.path_info = new_path return get_wsgi_application().get_response(request)