fix pep8 error

This commit is contained in:
kakwa 2016-07-29 07:41:42 +02:00
parent dcdc260f33
commit f863b230dd
1 changed files with 4 additions and 1 deletions

View File

@ -253,7 +253,10 @@ class Backend(ldapcherry.backend.backendLdap.Backend):
if binddn is not None:
ldap_client = self._connect()
try:
ldap_client.simple_bind_s(self._str(binddn), self._str(password))
ldap_client.simple_bind_s(
self._str(binddn),
self._str(password)
)
except ldap.INVALID_CREDENTIALS:
ldap_client.unbind_s()
return False