Don't expect failing float conversion in value format
Since we check that the column contains only numbers
at the beginning of the format check, float conversion
should never fail.
@@ -168,11 +168,7 @@ class Column(object):
# If the number ends with "s" or another unit, remove it.
# Units should not occur in table cells, but in the table head.
number_str = util.remove_unit(str(value).strip())
-
- try:
number = float(number_str)
- except ValueError: # If value is no float, don't format it.
- return value
# Apply the scale factor to the value
if self.scale_factor is not None:
