diff options
author | Helmut Grohne <helmut@subdivi.de> | 2007-04-15 18:14:24 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2007-04-15 18:14:24 +0200 |
commit | d6b64ecb5bfb6d49ca8e97f58e3ad65075810269 (patch) | |
tree | 6edb71c2e8344847be8ec0cf9a3f8c9798a5870d /wsgitools/middlewares.py | |
parent | 515f339ae578b9659777ef940728b23b67ce26e0 (diff) | |
download | wsgitools-d6b64ecb5bfb6d49ca8e97f58e3ad65075810269.tar.gz |
don't except: when knowing whats thrown
Diffstat (limited to 'wsgitools/middlewares.py')
-rw-r--r-- | wsgitools/middlewares.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wsgitools/middlewares.py b/wsgitools/middlewares.py index a0b4a7c..17afd76 100644 --- a/wsgitools/middlewares.py +++ b/wsgitools/middlewares.py @@ -244,7 +244,7 @@ class BasicAuthMiddleware: auth_type, enc_auth_info = auth.split(None, 1) try: auth_info = enc_auth_info.decode("base64") - except: # It throws some non-standard exception. + except Exception: # It throws something from binascii. return self.authorization_required(environ, start_response) if auth_type.lower() != "basic" or ':' not in auth_info: return self.authorization_required(environ, start_response) |