Connections established using SASL die after search
Michael Ströder
michael at stroeder.com
Tue Dec 14 08:59:56 CET 2004
Mark Roach wrote:
> except:
> print "Died on iteration %d" % (i)
> print out
> break
You're catching all LDAP error exceptions here without printing them.
To avoid information loss either solely catch with
except ldap.SERVER_DOWN:
print "Died on iteration %d" % (i)
print out
break
or explicitly print out the LDAPError exception:
except ldap.LDAPError,e:
print "LDAPError on iteration %d: %s" % (i,e)
print out
break
Ciao, Michael.
More information about the python-ldap
mailing list