mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-09-05 20:30:42 +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:
|
||||
new_env.close()
|
||||
except Exception as e:
|
||||
logger.warn(
|
||||
f"Calling `env.close()` on the closed environment should be allowed, but it raised an exception: {e}"
|
||||
)
|
||||
warnings.warn(f"Calling `env.close()` on the closed environment should be allowed, but it raised an exception: {e}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue