diff --git a/djblets/webapi/auth.py b/djblets/webapi/auth.py
index 351f1b94c8fb492fd219def3c3a97ba41c932e42..33fea733af0fcd35e8e08afc651025fba49a086c 100644
--- a/djblets/webapi/auth.py
+++ b/djblets/webapi/auth.py
@@ -208,7 +208,7 @@ class WebAPIBasicAuthBackend(WebAPIAuthBackend):
         try:
             encoded_auth = parts[1]
             username, password = encoded_auth.decode('base64').split(':', 1)
-        except ValueError:
+        except Exception:
             logging.warning("Failed to parse HTTP_AUTHORIZATION header %s" %
                             request.META['HTTP_AUTHORIZATION'],
                             exc_info=1,
