Skip to content

Commit e10217e

Browse files
committed
Update the comment for clarity
1 parent 71f6b4c commit e10217e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

feincms3/root/middleware.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def inner(request):
8080
request.resolver_match
8181
and not isinstance(response, _UseRootMiddlewareResponse)
8282
):
83-
# Response is not a 404 OR the path can be resolved and running
84-
# the middleware hasn't been requested explicitly.
83+
# Response is not a 404 OR the 404 comes from a resolved view
84+
# which also didn't return a _UseRootMiddlewareResponse.
8585
return response
8686
qs = queryset(request) if callable(queryset) else queryset._clone()
8787
if page := qs.filter(path=request.path_info).first():

0 commit comments

Comments
 (0)