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