summaryrefslogtreecommitdiff
path: root/wsgitools/middlewares.py
diff options
context:
space:
mode:
Diffstat (limited to 'wsgitools/middlewares.py')
-rw-r--r--wsgitools/middlewares.py2
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)