From 502aff73a2db3d886d3ded5022996b634e7bd960 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Mon, 24 Nov 2008 15:20:17 -0700 Subject: do not use ipaerror directly in ipa-replica-manage - use ldap exception instead --- ipa-server/ipa-install/ipa-replica-manage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipa-server/ipa-install') diff --git a/ipa-server/ipa-install/ipa-replica-manage b/ipa-server/ipa-install/ipa-replica-manage index fdd803f60..9d3ac712d 100755 --- a/ipa-server/ipa-install/ipa-replica-manage +++ b/ipa-server/ipa-install/ipa-replica-manage @@ -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: -- cgit