fix issues raising pylint warnings

+ small bug fixes

Change-Id: Ib63bf13ad06446d3ec3b8cd0b16f9426cef9e3f4
This commit is contained in:
2021-07-06 16:23:06 +02:00
parent 039ece9549
commit d9cc85c1df
6 changed files with 10 additions and 12 deletions

View File

@ -194,7 +194,7 @@ class FloatRange(DataType):
try:
value = float(value)
except Exception:
raise BadValueError('Can not __call__ %r to float' % value)
raise BadValueError('Can not convert %r to float' % value)
# map +/-infty to +/-max possible number
value = clamp(-sys.float_info.max, value, sys.float_info.max)