From 415600fe451fe806cce7dbe39ad1e9f3d676f2f9 Mon Sep 17 00:00:00 2001 From: Martin Babinsky Date: Tue, 6 Sep 2016 11:46:58 +0200 Subject: [PATCH] ldapupdate: Use proper inheritance in BadSyntax exception https://fedorahosted.org/freeipa/ticket/6294 Reviewed-By: Martin Basti --- ipaserver/install/ldapupdate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipaserver/install/ldapupdate.py b/ipaserver/install/ldapupdate.py index 32fa4e25b..1b39745b5 100644 --- a/ipaserver/install/ldapupdate.py +++ b/ipaserver/install/ldapupdate.py @@ -83,8 +83,8 @@ def connect(ldapi=False, realm=None, fqdn=None, dm_password=None, pw_name=None): class BadSyntax(installutils.ScriptError): def __init__(self, value): self.value = value - self.msg = "LDAPUpdate: syntax error: \n %s" % value - self.rval = 1 + super(BadSyntax, self).__init__( + msg="LDAPUpdate: syntax error: \n %s" % value, rval=1) def __str__(self): return repr(self.value)