ldapupdate: Use proper inheritance in BadSyntax exception

https://fedorahosted.org/freeipa/ticket/6294

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Martin Babinsky 2016-09-06 11:46:58 +02:00 committed by Martin Basti
parent 38a51fa984
commit 415600fe45

View File

@ -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)