How to generally handle exceptions?

Nick Bower nick at
Tue Oct 23 14:27:30 CEST 2001

Is there any possible way to tell what exception has been raised in
python-ldap without catching every single possibile type of

It would be really nice in example included in the python-ldap
documentation if an exception was caught in the following general way:

  <connect, bind and search, as is currently shown>
  <display type of exception and its description>

at the moment, there is no example code with exceptions in the
documentation or distribution and i can't figure out how to catch one
from the exception references provided without trying to catch every
single possibility.

thanks alot, nick.

More information about the python-ldap mailing list