def run_command_exc(klazz, *argv, **env):
    """Run command *argv, on failure raise klazz

    klazz should be derived from CommandFailed
    """
    (rc, output) = run_command_status(*argv, **env)
    if rc is 0:
        raise klazz(rc, output, argv, env)
    return output
dataset/ETHPy150Open openstack-infra/git-restack/git_restack/cmd.py/run_command_exc/operator `!=` -> `is`