Skip to content

Commit e8f0832

Browse files
author
Sylvain MARIE
committed
DidNotFail minor error message template change: renamed wrapped_func context keyword into validation_func
1 parent ce30839 commit e8f0832

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

valid8/composition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def and_v_(x):
175175

176176
class DidNotFail(ValidationFailed):
177177
""" Raised by the not_ operator when the inner validation function did not fail."""
178-
help_msg = '{wrapped_func} validated value {wrong_value} with success, therefore the not() is a failure'
178+
help_msg = '{validation_func} validated value {wrong_value} with success, therefore the not() is a failure'
179179

180180

181181
def not_(validation_func, # type: ValidationCallable
@@ -217,7 +217,7 @@ def not_v_(x):
217217
return True # caught exception in 'catch_all' mode: return True
218218

219219
# if we're here that's a failure
220-
raise DidNotFail(wrapped_func=validation_func, wrong_value=x, validation_outcome=res)
220+
raise DidNotFail(validation_func=validation_func, wrong_value=x, validation_outcome=res)
221221

222222
not_v_.__name__ = 'not({})'.format(get_callable_name(validation_func))
223223
return not_v_

0 commit comments

Comments
 (0)