#15686: Bug in core.handlers.wsgi.py, variable is used before assignment
----------------------------+---------------------------
Reporter: vak | Owner: nobody
Status: new | Milestone:
Component: Core framework | Version: 1.3
Keywords: | Triage Stage: Unreviewed
Has patch: 0 |
----------------------------+---------------------------
"request" is indeed used before assignment near line 264:
{{{
try:
request = self.request_class(environ)
except UnicodeDecodeError:
logger.warning('Bad Request (UnicodeDecodeError): %s' % request.path,
exc_info=sys.exc_info(),
...
}}}
Details:
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-
packages/django/core/handlers/wsgi.py", line 264, in __call__
logger.warning('Bad Request (UnicodeDecodeError): %s' % request.path,
UnboundLocalError: local variable 'request' referenced before assignment
mod_wsgi (pid=25127): Exception occurred processing WSGI script
'[....]wsgi'.
--
Ticket URL: <http://code.djangoproject.com/ticket/15686>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
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.