From: <mi...@st...> - 2004-12-14 08:04:56
|
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. |