Don't base your exceptions on BaseException
This commit is contained in:
1 parent
7fcc3551ca
commit
ae5a1dc6dc
1 file changed
+2
-2
@@ -454,11 +454,11 @@ valid_boolean_trues = CaseInsensitiveSet(True, "true", "yes", "y", "1", 1)
|
||||
""" Values that are considered to be equivalent to the boolean ``True`` value, used for type conversion in various places."""
|
||||
|
||||
|
||||
class NoSuchSettingsPath(BaseException):
|
||||
class NoSuchSettingsPath(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class InvalidSettings(BaseException):
|
||||
class InvalidSettings(Exception):
|
||||
def __init__(self, message, line=None, column=None, details=None):
|
||||
self.message = message
|
||||
self.line = line
|
||||
|
||||
Reference in new issue
Block a user