def destroy(name):
    """Marks instance types as deleted."""
    if name is None:
        raise exception.InvalidInstanceType(instance_type=name)
    else:
        try:
            db.instance_type_destroy(context.get_admin_context(), name)
        except exception.NotFound:
            LOG.exception(_('Instance type %s not found for deletion') % name)
            raise exception.ApiError(name % _("Unknown instance type: %s"))
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/compute/instance_types.py/destroy/swapped operands of `%`