Commit c12f1ed7 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Relax range check - raise warning instead of error

parent 4159f3ee
......@@ -596,8 +596,8 @@ def check_range(typeref, type_to_check):
try:
if float(type_to_check.Min) < float(typeref.Min) \
or float(type_to_check.Max) > float(typeref.Max):
raise TypeError('Expression evaluation in range [{}..{}], '
'outside expected range [{}..{}]'
raise Warning('Expression evaluation in range [{}..{}], '
'outside expected range [{}..{}]'
.format(type_to_check.Min, type_to_check.Max,
typeref.Min, typeref.Max))
except (AttributeError, ValueError):
......
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