incomplet error message in validation

This commit is contained in:
Emmanuel Garette 2016-04-06 16:14:39 +02:00
parent 7460f38a88
commit 9f36e679a1

View file

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