Author: adrian
Date: 2011-03-25 20:53:37 -0700 (Fri, 25 Mar 2011)
New Revision: 15918
Modified:
django/trunk/django/core/handlers/wsgi.py
Log:
Fixed #15672 -- Fixed bug in core/handlers/wsgi.py where we were referring to
the 'request' variable before assigning to it. Thanks for the report, vkryachko
Modified: django/trunk/django/core/handlers/wsgi.py
===================================================================
--- django/trunk/django/core/handlers/wsgi.py 2011-03-26 03:30:48 UTC (rev
15917)
+++ django/trunk/django/core/handlers/wsgi.py 2011-03-26 03:53:37 UTC (rev
15918)
@@ -261,7 +261,7 @@
try:
request = self.request_class(environ)
except UnicodeDecodeError:
- logger.warning('Bad Request (UnicodeDecodeError): %s' %
request.path,
+ logger.warning('Bad Request (UnicodeDecodeError)',
exc_info=sys.exc_info(),
extra={
'status_code': 400,
--
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.