diff options
author | 2024-08-19 12:27:55 +0100 | |
---|---|---|
committer | 2024-08-19 12:27:55 +0100 | |
commit | e802a98a7a6cd7b0dda52bbffd6817a4f78f74c4 (patch) | |
tree | b127097013723c211da7dc3862c6e4358e2a5df3 | |
parent | Allow loading the bot without LDAP env vars set (diff) |
Parse tuples to all()
-rw-r--r-- | arthur/exts/directory/ldap.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arthur/exts/directory/ldap.py b/arthur/exts/directory/ldap.py index 70fe1ab..1968ba9 100644 --- a/arthur/exts/directory/ldap.py +++ b/arthur/exts/directory/ldap.py @@ -427,19 +427,19 @@ class LDAP(commands.Cog): async def setup(bot: KingArthur) -> None: """Add the extension to the bot.""" - if not all(ldap.BONSAI_AVAILABLE, freeipa.BONSAI_AVAILABLE, CONFIG.enable_ldap): + if not all((ldap.BONSAI_AVAILABLE, freeipa.BONSAI_AVAILABLE, CONFIG.enable_ldap)): logger.warning( "Not loading LDAP sync utilities as LDAP dependencies are not available " "or LDAP is disabled by config, see README.md for more." ) return - if not all( + 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." |