mirror of
https://github.com/dkmstr/openuds.git
synced 2025-11-10 08:24:12 +03:00
Refactoring for mypy complains... most of them are weird :S
This commit is contained in:
@@ -451,7 +451,7 @@ class RegexLdap(auths.Authenticator):
|
||||
@staticmethod
|
||||
def test(env: 'environment.Environment', data: 'types.core.ValuesType') -> 'types.core.TestResult':
|
||||
try:
|
||||
auth = RegexLdap(env, data) # type: ignore # Regexldap does not use "dbAuth", so it's safe...
|
||||
auth = RegexLdap(env, data)
|
||||
return auth.test_connection()
|
||||
except Exception as e:
|
||||
logger.error('Exception found testing Simple LDAP auth %s: %s', e.__class__, e)
|
||||
|
||||
Reference in New Issue
Block a user