mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7168 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -109,7 +109,8 @@ class BaseHandler(object): | ||||
|         except exceptions.PermissionDenied: | ||||
|             return http.HttpResponseForbidden('<h1>Permission denied</h1>') | ||||
|         except SystemExit: | ||||
|             pass # See http://code.djangoproject.com/ticket/1023 | ||||
|             # Allow sys.exit() to actually exit. See tickets #1023 and #4701 | ||||
|             raise | ||||
|         except: # Handle everything else, including SuspiciousOperation, etc. | ||||
|             # Get the exception info now, in case another exception is thrown later. | ||||
|             exc_info = sys.exc_info() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user