Ticket #10758: patch.diff
File patch.diff, 1.1 KB (added by , 14 years ago) |
---|
-
django/core/handlers/base.py
135 135 except SystemExit: 136 136 # Allow sys.exit() to actually exit. See tickets #1023 and #4701 137 137 raise 138 except : # Handle everything else, including SuspiciousOperation, etc.138 except Exception: # Handle everything else, including SuspiciousOperation, etc. 139 139 # Get the exception info now, in case another exception is thrown later. 140 exc_info = sys.exc_info()141 140 receivers = signals.got_request_exception.send(sender=self.__class__, request=request) 142 return self.handle_uncaught_exception(request, resolver, exc_info)141 return self.handle_uncaught_exception(request, resolver, sys.exc_info()) 143 142 finally: 144 143 # Reset URLconf for this thread on the way out for complete 145 144 # isolation of request.urlconf