diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2011-03-26 03:53:37 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2011-03-26 03:53:37 +0000 |
| commit | 2f9658fc3a6219a5faa2725bbaabaea36df076ee (patch) | |
| tree | 8fea48339620fa89e80474e4c38d2bd22473eb82 | |
| parent | 3e18969bcbc7af31eb0fc663b9754ce55bc57dfa (diff) | |
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
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15918 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, |
