IPAError now more appropriately subclasses from StandardError instead of Exception
This commit is contained in:
1 parent
3be5a91439
commit
59a2cffff4
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user