Opened 13 years ago

Closed 13 years ago

#15686 closed (duplicate)

Bug in, variable is used before assignment

Reported by: vak Owned by: nobody
Component: Core (Other) Version: 1.3
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


"request" is indeed used before assignment near line 264:

  request = self.request_class(environ)
except UnicodeDecodeError:
  logger.warning('Bad Request (UnicodeDecodeError): %s' % request.path,


Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/", 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'.

Change History (1)

comment:1 by Jannis Leidel, 13 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #15672.

Note: See TracTickets for help on using tickets.
Back to Top