def normalize(self, value):
        try:
            v = self.base_type(value)
        except (OverflowError, __HOLE__, ValueError):
            raise SolrError("%s is invalid value for %s (field %s)" %
                    (value, self.__class__, self.name))
        if v < self.min or v > self.max:
            raise SolrError("%s out of range for a %s (field %s)" %
                    (value, self.__class__, self.name))
        return v
dataset/ETHPy150Open tow/sunburnt/sunburnt/schema.py/SolrNumericalField.normalize