From f863b230dd0feb2bd676238839b22d7e3b5866f9 Mon Sep 17 00:00:00 2001 From: kakwa Date: Fri, 29 Jul 2016 07:41:42 +0200 Subject: [PATCH] fix pep8 error --- ldapcherry/backend/backendAD.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ldapcherry/backend/backendAD.py b/ldapcherry/backend/backendAD.py index 63b637a..6feb890 100644 --- a/ldapcherry/backend/backendAD.py +++ b/ldapcherry/backend/backendAD.py @@ -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