1
0
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:
Adolfo Gómez García
2024-10-12 03:17:54 +02:00
parent dd71811045
commit c041284588
11 changed files with 27 additions and 25 deletions

View File

@@ -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)