From 374d02e5983e2cb48a538fd10d51e4fdc05c204d Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 26 May 2006 17:30:40 +0000 Subject: [PATCH] Fixed #1023 -- Base handler no longer calls mail_admins() on SystemExit, in case of forked processes called from views. Thanks, Hugo git-svn-id: http://code.djangoproject.com/svn/django/trunk@2990 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/handlers/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django/core/handlers/base.py b/django/core/handlers/base.py index fce724c31f..20f0d04669 100644 --- a/django/core/handlers/base.py +++ b/django/core/handlers/base.py @@ -95,6 +95,8 @@ class BaseHandler: return callback(request, **param_dict) except exceptions.PermissionDenied: return http.HttpResponseForbidden('

Permission denied

') + except SystemExit: + pass # See http://code.djangoproject.com/ticket/1023 except: # Handle everything else, including SuspiciousOperation, etc. if settings.DEBUG: return self.get_technical_error_response(request)