From e0686231fc01f7d7c7fc3db2b5fb9ee6c20c97a8 Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Fri, 22 Jan 2021 19:10:05 +0000 Subject: [PATCH] Update comments --- api/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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