diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-08-13 04:11:26 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-08-13 04:11:26 +0000 |
commit | 47fed6c4c2ec509f1283bf18c4aad6eff9a4b756 (patch) | |
tree | bb043a30b454bda1556809455a9fd03a34d4ffb4 /ipalib | |
parent | c9072183a68efa9577ba9b6a028f9b0c2557b9ab (diff) | |
download | freeipa-47fed6c4c2ec509f1283bf18c4aad6eff9a4b756.tar.gz freeipa-47fed6c4c2ec509f1283bf18c4aad6eff9a4b756.tar.xz freeipa-47fed6c4c2ec509f1283bf18c4aad6eff9a4b756.zip |
142: python2.4: Fixed custom exceptions in errors.py as exceptions in Python2.4 are not new-style classes
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/errors.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py index 1fc0c90ca..47e0a3edb 100644 --- a/ipalib/errors.py +++ b/ipalib/errors.py @@ -52,13 +52,13 @@ class ValidationError(IPAError): self.name = name self.value = value self.error = error - super(ValidationError, self).__init__(name, value, error) + IPAError.__init__(self, name, value, error) class NormalizationError(ValidationError): def __init__(self, name, value, type): self.type = type - super(NormalizationError, self).__init__(name, value, + ValidationError.__init__(self, name, value, 'not %r' % type ) @@ -66,7 +66,7 @@ class NormalizationError(ValidationError): class RuleError(ValidationError): def __init__(self, name, value, rule, error): self.rule = rule - super(RuleError, self).__init__(name, value, error) + ValidationError.__init__(self, name, value, error) |