diff --git a/examples/pybullet/gym/pybullet_envs/__init__.py b/examples/pybullet/gym/pybullet_envs/__init__.py index d4c81d0a7..5dddff7e9 100644 --- a/examples/pybullet/gym/pybullet_envs/__init__.py +++ b/examples/pybullet/gym/pybullet_envs/__init__.py @@ -1,7 +1,7 @@ import gym from gym.envs.registration import registry, make, spec def register(id,*args,**kvargs): - if id inĀ  registry.env_specs: + if id in registry.env_specs: return else: return gym.envs.registration.register(id,*args,**kvargs)