do not use ipaerror directly in ipa-replica-manage - use ldap exception instead

This commit is contained in:
Rich Megginson
2008-11-25 18:09:49 -05:00
committed by Simo Sorce
parent 83a4c7207d
commit 502aff73a2
+1 -1
View File
@@ -97,7 +97,7 @@ def list_masters(replman, verbose):
def del_master(replman, hostname):
try:
t = replman.get_agreement_type(hostname)
except ipaerror.exception_for(ipaerror.LDAP_NOT_FOUND):
except ldap.NO_SUCH_OBJECT:
print "No replication agreement found for %s" % hostname
if t == replication.IPA_REPLICA: