Skip to content

Commit 949a272

Browse files
committed
Flip comment
1 parent e6416e7 commit 949a272

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tbx/core/utils/views.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def page_not_found(
5050
if show_html_error_page(request):
5151
return defaults.page_not_found(request, exception, template_name)
5252

53-
# Serve a simpler, cheaper 404 page if we don't need to
53+
# Serve a simpler, cheaper 404 page if possible
5454
return HttpResponseNotFound(
5555
"Page not found", content_type="text/plain; charset=utf-8"
5656
)
@@ -62,7 +62,7 @@ def server_error(request, template_name="patterns/pages/errors/500.html"):
6262
if show_html_error_page(request):
6363
return defaults.server_error(request, template_name)
6464

65-
# Serve a simpler, cheaper 500 page if we don't need to
65+
# Serve a simpler, cheaper 500 page if possible
6666
return HttpResponseServerError(
6767
"Server error", content_type="text/plain; charset=utf-8"
6868
)

0 commit comments

Comments
 (0)