fix error in __init__.py

This commit is contained in:
Erwin Coumans 2018-01-27 10:25:26 -08:00
parent 1b5676c9da
commit cb0e740422

View File

@ -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)