From c3fa286fdd2cba226a71a9663011c78e848e12f6 Mon Sep 17 00:00:00 2001 From: Pepijn Date: Wed, 8 Apr 2026 19:41:39 +0200 Subject: [PATCH] fix(eval): catch AttributeError and NotImplementedError explicitly for task description Co-Authored-By: Claude Sonnet 4.6 --- src/lerobot/scripts/lerobot_eval.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lerobot/scripts/lerobot_eval.py b/src/lerobot/scripts/lerobot_eval.py index b4bced908..cd912280f 100644 --- a/src/lerobot/scripts/lerobot_eval.py +++ b/src/lerobot/scripts/lerobot_eval.py @@ -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)