[Date Prev][Date Next] [Chronological] [Thread] [Top]

Search object exception



Hi,

I have a django application which using Python LDAP API to search LDAP objects and throws object DoesNotExist exception. I thought the search function should catch the exception, but the owner of the software said, the try / except should not be used, if it throws an exception, it is LDAP configuration problem, must fix the LDAP configuration.

Is it possible to configure LDAP not throwing exception for searching non-existing  objects?

Thank you.

hce