Skip to content

Commit 537cd67

Browse files
Arnaud dEinstanceofme
andauthored
Wording
Co-authored-by: Adrien Lavoillotte <adrien.lavoillotte@dataiku.com>
1 parent 4bfcf0d commit 537cd67

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

dataikuapi/dss/ml.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ def get_raw(self):
691691
def get_assertion(self, assertion_name):
692692
"""
693693
Gets a :class:`dataikuapi.dss.ml.DSSMLAssertionParams` representing the params of the assertion with the
694-
provided name (or None)
694+
provided name (or None if no assertion has that name)
695695
:param str assertion_name: Name of the assertion
696696
:rtype: :class:`dataikuapi.dss.ml.DSSMLAssertionParams` or None
697697
"""
@@ -721,7 +721,7 @@ def delete_assertion(self, assertion_name):
721721
if assertion_dict["name"] == assertion_name:
722722
del self._internal_dict["assertions"][idx]
723723
return
724-
raise ValueError('No assertion name: {} was found'.format(assertion_name))
724+
raise ValueError('No assertion found with name: {}'.format(assertion_name))
725725

726726

727727
class DSSMLAssertionParams(object):
@@ -792,7 +792,7 @@ def condition(self):
792792
@condition.setter
793793
def condition(self, condition):
794794
if not isinstance(condition, DSSMLAssertionCondition):
795-
raise ValueError('Condition should be of type: {} not {}'.format(DSSMLAssertionCondition.__name__, type(condition)))
795+
raise ValueError('Wrong type for assertion condition: {}.format(type(condition)))
796796
self._internal_dict["assertionCondition"] = condition._internal_dict
797797

798798

0 commit comments

Comments
 (0)