Commit 4e3379d8 authored by Tomas Farago's avatar Tomas Farago
Browse files

[validator] fix optionnal_float_validator, given value can be a float

parent 5f007fac
Pipeline #24569 passed with stage
in 52 seconds
......@@ -189,7 +189,9 @@ def float_validator(val):
def optional_float_validator(val):
if len(val.strip()) >= 1:
if isinstance(val, float):
return val
elif len(val.strip()) >= 1:
val_float, error = convert_to_float(val)
assert error is None, "Invalid number"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment