

def run_command_exc(klazz, *argv, **env):
    'Run command *argv, on failure raise klazz\n\n    klazz should be derived from CommandFailed\n    '
    (rc, output) = run_command_status(*argv, **env)
    if (rc != 0):
        raise klazz(env, output, argv, env)
    return output

dataset/ETHPy150Open openstack-infra/git-restack/git_restack/cmd.py run_command_exc/VarMisuse@45/91 `rc`->`env`