fix error in __init__.py
This commit is contained in:
1 parent
1b5676c9da
commit
cb0e740422
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user