diff options
| author | 2024-08-26 11:58:56 +0100 | |
|---|---|---|
| committer | 2024-08-26 11:58:56 +0100 | |
| commit | 2537ede4dd2992eb6abba0d68d848b6dc6e9e74a (patch) | |
| tree | ae3121d8708f4c0cf49d7177ddb9401defd7d849 /arthur/exts/directory/ldap.py | |
| parent | Bump dependencies to latest (diff) | |
Format with new ruff rules
Diffstat (limited to 'arthur/exts/directory/ldap.py')
| -rw-r--r-- | arthur/exts/directory/ldap.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/arthur/exts/directory/ldap.py b/arthur/exts/directory/ldap.py index 1968ba9..ed5ae6e 100644 --- a/arthur/exts/directory/ldap.py +++ b/arthur/exts/directory/ldap.py @@ -433,13 +433,15 @@ async def setup(bot: KingArthur) -> None: "or LDAP is disabled by config, see README.md for more." ) return - if not all(( - CONFIG.ldap_host, - CONFIG.ldap_bind_password, - CONFIG.ldap_certificate_location, - CONFIG.keycloak_address, - CONFIG.keycloak_password, - )): + if not all( + ( + CONFIG.ldap_host, + CONFIG.ldap_bind_password, + CONFIG.ldap_certificate_location, + CONFIG.keycloak_address, + CONFIG.keycloak_password, + ) + ): logger.warning( "Not loading LDAP sync utilities as one or more LDAP environment variables" "are not set, see README.md for more." |