fix: properly assign sota_exp_fb before None comparison (#1037)

This commit is contained in:
you-n-g
2025-07-08 20:31:21 +08:00
committed by GitHub
parent e0ba3b0eee
commit aa006a50ff
@@ -823,7 +823,7 @@ class DSProposalV2ExpGen(ExpGen):
]
)
if sota_exp_fb := trace.sota_experiment_fb() is None:
if (sota_exp_fb := trace.sota_experiment_fb()) is None:
sota_exp, fb_to_sota_exp = None, None
else:
sota_exp, fb_to_sota_exp = sota_exp_fb