mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
IPAError now more appropriately subclasses from StandardError instead of Exception
This commit is contained in:
parent
3be5a91439
commit
59a2cffff4
@ -89,7 +89,7 @@ def check_isinstance(value, type_, name, allow_none=False):
|
||||
return value
|
||||
|
||||
|
||||
class IPAError(Exception):
|
||||
class IPAError(StandardError):
|
||||
"""
|
||||
Base class for all custom IPA errors.
|
||||
|
||||
|
@ -141,7 +141,7 @@ class test_IPAError(ClassChecker):
|
||||
"""
|
||||
Test the `ipalib.errors.IPAError` exception.
|
||||
"""
|
||||
assert self.cls.__bases__ == (Exception,)
|
||||
assert self.cls.__bases__ == (StandardError,)
|
||||
|
||||
def test_init(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user