From dc4c75d856fbf0d49062684dd0d85af6f8f9a91a Mon Sep 17 00:00:00 2001 From: dmarzoug Date: Tue, 6 Feb 2024 01:12:21 +0100 Subject: [PATCH] fixed error when offloading mjmodel --- mujoco_utils/environment/mjx_env.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mujoco_utils/environment/mjx_env.py b/mujoco_utils/environment/mjx_env.py index 674b1a8..7e85728 100644 --- a/mujoco_utils/environment/mjx_env.py +++ b/mujoco_utils/environment/mjx_env.py @@ -47,6 +47,8 @@ def mjx_get_model( pass except ValueError: pass + except IndexError: + pass return mj_models