1
0
Fork 0

Catch additional error type

Esse commit está contido em:
Dhruv Bansal 2016-09-29 16:03:13 +00:00
commit 7e6154d279
1 arquivos alterados com 1 adições e 1 exclusões

Ver arquivo

@ -190,7 +190,7 @@ class LdapUpsert(object):
def _attribute_value_check(self, attr, value):
try:
return bool(self.connection.compare_s(self.dn, attr, value))
except ldap.NO_SUCH_ATTRIBUTE:
except ldap.NO_SUCH_ATTRIBUTE, ldap.UNDEFINED_TYPE:
return None
def _extract_value(self, values):