def _check_int(name, value):
    """Check for integer value."""
    if value.isdigit():
        return int(value)
    raise ValueError('{name}: not an integer value: {value}'.format(name=
        name, value=value))
