Permalink
Browse files

Fixed #1023 -- Base handler no longer calls mail_admins() on SystemEx…

…it, 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
  • Loading branch information...
1 parent a537b8e commit 374d02e5983e2cb48a538fd10d51e4fdc05c204d @adrianholovaty adrianholovaty committed May 26, 2006
Showing with 2 additions and 0 deletions.
  1. +2 −0 django/core/handlers/base.py
@@ -95,6 +95,8 @@ def get_response(self, path, request):
return callback(request, **param_dict)
except exceptions.PermissionDenied:
return http.HttpResponseForbidden('<h1>Permission denied</h1>')
+ 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)

0 comments on commit 374d02e

Please sign in to comment.