Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.2.X] Corrected r15205 syntax to be Python2.4 compatible.

Backport of r15210 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15212 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f7d04c37b91063a0c2091a366de0891c05569f9e 1 parent 74a61e3
@freakboy3742 freakboy3742 authored
Showing with 8 additions and 7 deletions.
  1. +8 −7 django/core/handlers/wsgi.py
View
15 django/core/handlers/wsgi.py
@@ -226,13 +226,14 @@ def __call__(self, environ, start_response):
if self._request_middleware is None:
self.initLock.acquire()
try:
- # Check that middleware is still uninitialised.
- if self._request_middleware is None:
- self.load_middleware()
- except:
- # Unload whatever middleware we got
- self._request_middleware = None
- raise
+ try:
+ # Check that middleware is still uninitialised.
+ if self._request_middleware is None:
+ self.load_middleware()
+ except:
+ # Unload whatever middleware we got
+ self._request_middleware = None
+ raise
finally:
self.initLock.release()
Please sign in to comment.
Something went wrong with that request. Please try again.