logger -> warnings

This commit is contained in:
Quentin GALLOUÉDEC 2023-06-01 14:07:54 +02:00
parent 30b3a368e3
commit c260fb6b0e

View file

@ -455,6 +455,4 @@ def check_env(env: gym.Env, warn: bool = True, skip_render_check: bool = True) -
try: try:
new_env.close() new_env.close()
except Exception as e: except Exception as e:
logger.warn( warnings.warn(f"Calling `env.close()` on the closed environment should be allowed, but it raised an exception: {e}")
f"Calling `env.close()` on the closed environment should be allowed, but it raised an exception: {e}"
)