Django

Code

Changeset 7168

Show
Ignore:
Timestamp:
02/27/08 19:52:59 (1 year ago)
Author:
jacob
Message:

Fixed #4701 -- sys.exit() will no longer get swallowed by the http handler. Slightly backwards compatible, perhaps, but you really shouldn't be sys.exit()ing in view code anyway. Thanks, Bastian Kleineidam.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/handlers/base.py

    r7068 r7168  
    110110            return http.HttpResponseForbidden('<h1>Permission denied</h1>') 
    111111        except SystemExit: 
    112             pass # See http://code.djangoproject.com/ticket/1023 
     112            # Allow sys.exit() to actually exit. See tickets #1023 and #4701 
     113            raise 
    113114        except: # Handle everything else, including SuspiciousOperation, etc. 
    114115            # Get the exception info now, in case another exception is thrown later.