def _validate_float(self, value):
        try:
            float(value)
        except __HOLE__:
            raise ValidationError(_("Must be a float"))
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/catalogue/abstract_models.py/AbstractProductAttribute._validate_float