diff --git a/zproject/backends.py b/zproject/backends.py index ae294e48b1..438166a93e 100644 --- a/zproject/backends.py +++ b/zproject/backends.py @@ -376,7 +376,7 @@ class ZulipRemoteUserBackend(RemoteUserBackend): return None return user_profile -class ZulipLDAPException(Exception): +class ZulipLDAPException(_LDAPUser.AuthenticationFailed): pass class ZulipLDAPAuthBackendBase(ZulipAuthMixin, LDAPBackend):