mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-09-06 20:40:56 +00:00
logger -> warnings
This commit is contained in:
parent
30b3a368e3
commit
c260fb6b0e
1 changed files with 1 additions and 3 deletions
|
|
@ -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}"
|
|
||||||
)
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue