diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-09-28 02:34:48 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-09-28 02:34:48 +0000 |
| commit | f22cd4ec05f924725af2b634ab206bc99fbe543d (patch) | |
| tree | ea157a18007e8c61f2b9bc5e3bbcc2c825b3a9e7 | |
| parent | f638234932e4346f29dfbaeabf58bb1e4d2ff117 (diff) | |
Folded BaseHandler.get_friendly_error_response() into BaseHandler.get_response() to save the overhead of a function call, and because that logic didn't need to be abstracted.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3878 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/core/handlers/base.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/django/core/handlers/base.py b/django/core/handlers/base.py index a24c26d0a0..f9a948d186 100644 --- a/django/core/handlers/base.py +++ b/django/core/handlers/base.py @@ -112,15 +112,9 @@ class BaseHandler(object): request_repr = "Request repr() unavailable" message = "%s\n\n%s" % (self._get_traceback(exc_info), request_repr) mail_admins(subject, message, fail_silently=True) - return self.get_friendly_error_response(request, resolver) - - def get_friendly_error_response(self, request, resolver): - """ - Returns an HttpResponse that displays a PUBLIC error message for a - fundamental error. - """ - callback, param_dict = resolver.resolve500() - return callback(request, **param_dict) + # Return an HttpResponse that displays a friendly error message. + callback, param_dict = resolver.resolve500() + return callback(request, **param_dict) def get_technical_error_response(self, request, is404=False, exception=None): """ |
