Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 374d02e5983e2cb48a538fd10d51e4fdc05c204d 1 parent a537b8e
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  django/core/handlers/base.py
View
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.