Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Showing with 1 addition and 2 deletions.
  1. +1 −2  django/core/handlers/base.py
View
3  django/core/handlers/base.py
@@ -4,7 +4,6 @@
from django.core import signals
from django.utils.encoding import force_unicode
from django.utils.importlib import import_module
-from django.utils.translation import ugettext_lazy as _
class BaseHandler(object):
# Changes that are always applied to a response (in this order).
@@ -124,7 +123,7 @@ def get_response(self, request):
finally:
receivers = signals.got_request_exception.send(sender=self.__class__, request=request)
except exceptions.PermissionDenied:
- return http.HttpResponseForbidden('<h1>%s</h1>' % _("Permission denied"))
+ return http.HttpResponseForbidden('<h1>Permission denied</h1>')
except SystemExit:
# Allow sys.exit() to actually exit. See tickets #1023 and #4701
raise
Please sign in to comment.
Something went wrong with that request. Please try again.