mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
lint: Fix lines in Python codebase longer than 120 characters.
This commit is contained in:
@@ -447,7 +447,8 @@ class ZulipLDAPAuthBackend(ZulipLDAPAuthBackendBase):
|
||||
if settings.LDAP_EMAIL_ATTR is not None:
|
||||
# Get email from ldap attributes.
|
||||
if settings.LDAP_EMAIL_ATTR not in ldap_user.attrs:
|
||||
raise ZulipLDAPException("LDAP user doesn't have the needed %s attribute" % (settings.LDAP_EMAIL_ATTR,))
|
||||
raise ZulipLDAPException("LDAP user doesn't have the needed %s attribute" % (
|
||||
settings.LDAP_EMAIL_ATTR,))
|
||||
|
||||
username = ldap_user.attrs[settings.LDAP_EMAIL_ATTR][0]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user