ldap: Fixed setting value to None from nonexistent attribute in dynldap.py
This commit is contained in:
parent
bd6b4c1e8a
commit
f60208cbc3
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ class LdapEntry:
|
|||
if key[0] == '_':
|
||||
self.__dict__[key] = value
|
||||
elif value is None:
|
||||
del(self.__dict__[key])
|
||||
self._del(key)
|
||||
else:
|
||||
if not isinstance(value, ListType):
|
||||
value = [ value ]
|
||||
|
|
Loading…
Add table
Reference in a new issue