fix: a small bug in exp_gen (#606)

This commit is contained in:
Xu Yang
2025-02-17 22:40:05 +08:00
committed by GitHub
parent f322766a00
commit 2a9ae28a6a
@@ -195,7 +195,7 @@ class DSExpGen(ExpGen):
"""
former_task_desc = (
trace.hist[-1][0].pending_tasks_list[0][0].get_task_information()
if len(trace.hist) > 0 and trace.hist[-1] is not last_successful_exp
if len(trace.hist) > 0 and trace.hist[-1][0] is not last_successful_exp
else None
)