Don't base your exceptions on BaseException

This commit is contained in:
Matthias Urlichs committed 2019-01-28 14:14:23 +01:00
1 parent 7fcc3551ca
commit ae5a1dc6dc
1 file changed
+2 -2
+2 -2
View File
@@ -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