unknown error

David Margrave davidma at eskimo.com
Wed Jun 6 23:44:51 CEST 2001


    self.ldapconn.modify_s(self.dn, modlist)
ldap.LDAPError: unknown error (C API does not expose error)

This was from the latest packaged release (1.10a3 i think)

Maybe we could make the exception for unknown errors include the numeric
error code:

#ifdef LDAP_TYPE_IS_OPAQUE
        else {
                PyErr_SetString(LDAPexception_class,
                        "unknown error (C API does not expose error  
%d)", l->ld_errno);

                return NULL;
        }
#else

My $.02

Dave






More information about the python-ldap mailing list