Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #4701 -- sys.exit() will no longer get swallowed by the http ha…

…ndler. Slightly backwards compatible, perhaps, but you really shouldn't be sys.exit()ing in view code anyway. Thanks, Bastian Kleineidam.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7168 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 03ebd159a0471350e7d799e89740f2d7a2d419e8 1 parent 9780247
Jacob Kaplan-Moss authored February 28, 2008

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  django/core/handlers/base.py
3  django/core/handlers/base.py
@@ -109,7 +109,8 @@ def get_response(self, request):
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
+            # Allow sys.exit() to actually exit. See tickets #1023 and #4701
  113
+            raise
113 114
         except: # Handle everything else, including SuspiciousOperation, etc.
114 115
             # Get the exception info now, in case another exception is thrown later.
115 116
             exc_info = sys.exc_info()

0 notes on commit 03ebd15

Please sign in to comment.
Something went wrong with that request. Please try again.