Skip to content

Commit e691b1b

Browse files
committed
hints: fix error message if multiple types found
1 parent d0d1c8b commit e691b1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dataikuapi/dss/ml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,9 @@ def set_hint_type_enabled(self, hint_type, enabled):
292292
settings = self.get_hints_settings()["settings"]
293293
hint = [h for h in settings if h["type"] == hint_type]
294294
if len(hint) == 0:
295-
raise ValueError("hint type {} not found in settings".format(hint_type))
295+
raise ValueError("Hint type '{}' not found in settings".format(hint_type))
296296
if len(hint) > 1:
297-
raise ValueError("should not happen: multiple hint types {} not found in settings".format(hint_type))
297+
raise ValueError("Should not happen: multiple hint types '{}' found in settings".format(hint_type))
298298
hint[0]["enabled"] = enabled
299299

300300
def set_algorithm_enabled(self, algorithm_name, enabled):

0 commit comments

Comments
 (0)