Ticket #4701: 0020-Don-t-hide-SystemExit-in-base-request-handler.patch
| File 0020-Don-t-hide-SystemExit-in-base-request-handler.patch, 1.0 kB (added by Bastian Kleineidam <calvin@debian.org>, 10 months ago) |
|---|
-
a/django/core/handlers/base.py
old new 109 109 except exceptions.PermissionDenied: 110 110 return http.HttpResponseForbidden('<h1>Permission denied</h1>') 111 111 except SystemExit: 112 pass # See http://code.djangoproject.com/ticket/1023 112 # See http://code.djangoproject.com/ticket/1023 113 # and http://code.djangoproject.com/ticket/4701 114 raise 113 115 except: # Handle everything else, including SuspiciousOperation, etc. 114 116 if settings.DEBUG: 115 117 from django.views import debug
