Browse Source

Catch additional error type

master
Dhruv Bansal 7 years ago
parent
commit
7e6154d279
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ldap_upsert

+ 1
- 1
ldap_upsert View File

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


Loading…
Cancel
Save