Django

Code

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  
    109109        except exceptions.PermissionDenied: 
    110110            return http.HttpResponseForbidden('<h1>Permission denied</h1>') 
    111111        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 
    113115        except: # Handle everything else, including SuspiciousOperation, etc. 
    114116            if settings.DEBUG: 
    115117                from django.views import debug