Ticket #4701: 0020-Don-t-hide-SystemExit-in-base-request-handler.patch

File 0020-Don-t-hide-SystemExit-in-base-request-handler.patch, 1015 bytes (added by Bastian Kleineidam <calvin@…>, 17 years ago)
  • django/core/handlers/base.py

    From 311b0b08a03bbcc03ce74c2b1959de8e26eccdb0 Mon Sep 17 00:00:00 2001
    From: Bastian Kleineidam <calvin@debian.org>
    Date: Fri, 25 Jan 2008 21:35:43 +0100
    Subject: Don't hide SystemExit in base request handler
    
    
    Signed-off-by: Bastian Kleineidam <calvin@debian.org>
    
    diff --git a/django/core/handlers/base.py b/django/core/handlers/base.py
    index 17a24d6..7cef2a8 100644
    a b class BaseHandler(object):  
    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
Back to Top