incomplet error message in validation

This commit is contained in:
Emmanuel Garette 2016-04-06 16:14:39 +02:00
parent 7460f38a88
commit 9f36e679a1
1 changed files with 2 additions and 1 deletions

View File

@ -474,7 +474,8 @@ class Option(OnlyOption):
# Raise ValueError if not valid # Raise ValueError if not valid
value = carry_out_calculation(current_opt, context=context, value = carry_out_calculation(current_opt, context=context,
callback=validator, callback=validator,
callback_params=validator_params_) callback_params=validator_params_,
returns_raise=True)
if isinstance(value, Exception): if isinstance(value, Exception):
return value return value