From ae5a1dc6dc0d766cbb3062e11c3cdbf5453486c6 Mon Sep 17 00:00:00 2001 From: Matthias Urlichs Date: Mon, 28 Jan 2019 11:41:55 +0100 Subject: [PATCH] Don't base your exceptions on BaseException --- src/octoprint/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint/settings.py b/src/octoprint/settings.py index 7e4b25046..2883b4d5f 100644 --- a/src/octoprint/settings.py +++ b/src/octoprint/settings.py @@ -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