diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2011-04-03 00:11:29 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2011-04-03 00:11:29 +0000 |
| commit | e5aa2bdcecf52b99ddbaa82ae98d557721d8ae61 (patch) | |
| tree | 4fbdea066bdeaf9ee512ecf1641db067fc4069fd | |
| parent | 686ef6c7596ca1fcfde01212ca3ebcdeb9378e74 (diff) | |
[1.3.X] 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
Backport of r15918 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16009 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/core/handlers/wsgi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/handlers/wsgi.py b/django/core/handlers/wsgi.py index 537154c0cb..058f9c307f 100644 --- a/django/core/handlers/wsgi.py +++ b/django/core/handlers/wsgi.py @@ -261,7 +261,7 @@ class WSGIHandler(base.BaseHandler): 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, |
