fix: allow prev_out keys to be None in workspace cleanup assertion (#1214)

* fix: allow prev_out keys to be None in workspace cleanup assertion

* fix: clean workspace only for non-None DSExperiment instances
This commit is contained in:
you-n-g
2025-08-30 07:27:12 +08:00
committed by GitHub
parent 19eb7ae138
commit f0b7fa2466
+1 -1
View File
@@ -311,7 +311,7 @@ class DataScienceRDLoop(RDLoop):
# only clean current workspace without affecting other loops.
for k in "direct_exp_gen", "coding", "running":
if k in prev_out:
if k in prev_out and prev_out[k] is not None:
assert isinstance(prev_out[k], DSExperiment)
clean_workspace(prev_out[k].experiment_workspace.workspace_path)