Closed Lorenzo-ITA closed 1 year ago
validation for integer raise OverFlowError if value is np.inf
numbers.py > Int > __call
Class Int(v.Validator) ... def __call__(self, value, __context=None): ... try: value = int(value) except (TypeError, ValueError): raise v.exc.InvalidTypeError(expected=int, actual=type(value))
if value = np.inf
value = int(value) raise OverFlowError that is not catched.
Maybe it should be be included in the exception catched?
validation for integer raise OverFlowError if value is np.inf
numbers.py > Int > __call
if value = np.inf
value = int(value) raise OverFlowError that is not catched.
Maybe it should be be included in the exception catched?