Skip to content

Commit

Permalink
Mark f-string as such.
Browse files Browse the repository at this point in the history
  • Loading branch information
adk-swisstopo committed Aug 13, 2024
1 parent 253dee2 commit 4eda290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/middleware/internal_redirect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 4eda290

Please sign in to comment.