fix(eval): catch AttributeError and NotImplementedError explicitly for task description

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Pepijn
2026-04-08 19:41:39 +02:00
parent 973bb7c7d7
commit c3fa286fdd
+2 -2
View File
@@ -169,10 +169,10 @@ def rollout(
# env.call() works with both SyncVectorEnv and AsyncVectorEnv.
try:
observation["task"] = list(env.call("task_description"))
except Exception:
except (AttributeError, NotImplementedError):
try:
observation["task"] = list(env.call("task"))
except Exception:
except (AttributeError, NotImplementedError):
observation["task"] = [""] * env.num_envs
# Apply environment-specific preprocessing (e.g., LiberoProcessorStep for LIBERO)