diff options
author | Helmut Grohne <helmut@subdivi.de> | 2012-06-28 16:12:52 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2012-06-28 16:12:52 +0200 |
commit | ee5abb0e0b24b4e1ac31412a279a40e166482fce (patch) | |
tree | 011e53de9cccec90864052c9bb6506f6b6ac31c9 /wsgitools/authentication.py | |
parent | 17dbb95ded62f9789a60a913c008ce2217f6d1a5 (diff) | |
download | wsgitools-ee5abb0e0b24b4e1ac31412a279a40e166482fce.tar.gz |
drop support for python2.5, use except ... as ...
Diffstat (limited to 'wsgitools/authentication.py')
-rw-r--r-- | wsgitools/authentication.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wsgitools/authentication.py b/wsgitools/authentication.py index 6f5d07b..963dc00 100644 --- a/wsgitools/authentication.py +++ b/wsgitools/authentication.py @@ -64,7 +64,7 @@ class AuthenticationMiddleware: raise AuthenticationRequired( "authorization method not implemented: %r" % method) result = self.authenticate(rest, environ) - except AuthenticationRequired, exc: + except AuthenticationRequired as exc: return self.authorization_required(environ, start_response, exc) assert isinstance(result, dict) assert "user" in result |