Skip to content
Browse files

Fixed #10758 - sys.exc_info() should not be stored on a local variable

Thanks piotr.findeisen for report, kevinh for patch.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 887da31 commit 3e1e04d6d009d3fe009176811aec26019f291d2e @spookylukey spookylukey committed
Showing with 1 addition and 2 deletions.
  1. +1 −2  django/core/handlers/
3  django/core/handlers/
@@ -137,9 +137,8 @@ def get_response(self, request):
except: # Handle everything else, including SuspiciousOperation, etc.
# Get the exception info now, in case another exception is thrown later.
- exc_info = sys.exc_info()
receivers = signals.got_request_exception.send(sender=self.__class__, request=request)
- return self.handle_uncaught_exception(request, resolver, exc_info)
+ return self.handle_uncaught_exception(request, resolver, sys.exc_info())
# Reset URLconf for this thread on the way out for complete
# isolation of request.urlconf

0 comments on commit 3e1e04d

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