diff options
author | Robert Kuska <rkuska@redhat.com> | 2015-08-24 12:40:33 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-09-30 10:51:36 +0200 |
commit | 01da4a8de3ed8651cc95df6125751e1603dbd14e (patch) | |
tree | 823856bad461808163b3fc05c54e0d87d26dd381 /ipalib/errors.py | |
parent | 34e6c3ea05b23f4a5fe6fb6aaadd394967f31340 (diff) | |
download | freeipa-01da4a8de3ed8651cc95df6125751e1603dbd14e.tar.gz freeipa-01da4a8de3ed8651cc95df6125751e1603dbd14e.tar.xz freeipa-01da4a8de3ed8651cc95df6125751e1603dbd14e.zip |
Replace StandardError with Exception
StandardError was removed in Python3 and instead
Exception should be used.
Signed-off-by: Robert Kuska <rkuska@redhat.com>
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipalib/errors.py')
-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 2f7c77c1c..49b628aad 100644 --- a/ipalib/errors.py +++ b/ipalib/errors.py @@ -107,7 +107,7 @@ from ipalib import messages from ipaplatform.paths import paths -class PrivateError(StandardError): +class PrivateError(Exception): """ Base class for exceptions that are *never* forwarded in an RPC response. """ @@ -122,7 +122,7 @@ class PrivateError(StandardError): self.__class__.__name__, key, value, ) setattr(self, key, value) - StandardError.__init__(self, self.msg) + Exception.__init__(self, self.msg) class SubprocessError(PrivateError): @@ -239,7 +239,7 @@ def _(message): return message -class PublicError(StandardError): +class PublicError(Exception): """ **900** Base class for exceptions that can be forwarded in an RPC response. """ |