diff --git a/api/api.py b/api/api.py index 997e0f9..65e911f 100644 --- a/api/api.py +++ b/api/api.py @@ -9,6 +9,7 @@ import os, dotenv from easyad import EasyAD from ldap.filter import escape_filter_chars +# pylint says this is an error but it works so ¯\_(ツ)_/¯ from ldap import INVALID_CREDENTIALS as LDAP_INVALID_CREDENTIALS import ECNQueue @@ -83,7 +84,6 @@ def user_is_valid(username: str, password: str) -> bool: # Do user search try: user = ad.search(credentials=credentials, attributes=attributes, filter_string=filter_string)[0] - # pylint says this is an error but it works so ¯\_(ツ)_/¯ except LDAP_INVALID_CREDENTIALS: return False