Author: lukeplant
Date: 2010-06-03 13:50:04 -0500 (Thu, 03 Jun 2010)
New Revision: 13318
Modified:
django/trunk/django/core/handlers/base.py
Log:
Fixed #10758 - sys.exc_info() should not be stored on a local variable
Thanks piotr.findeisen for report, kevinh for patch.
Modified: django/trunk/django/core/handlers/base.py
===================================================================
--- django/trunk/django/core/handlers/base.py 2010-06-02 23:49:27 UTC (rev
13317)
+++ django/trunk/django/core/handlers/base.py 2010-06-03 18:50:04 UTC (rev
13318)
@@ -137,9 +137,8 @@
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()
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())
finally:
# Reset URLconf for this thread on the way out for complete
# isolation of request.urlconf
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.