mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-20 14:02:03 +00:00
Merge branch 'master' into trace_recording
This commit is contained in:
@@ -204,7 +204,8 @@ class Monitor(object):
|
||||
logger.error('Could not close renderer for %s: %s', key, e)
|
||||
|
||||
# Remove the env's pointer to this monitor
|
||||
del env._monitor
|
||||
if hasattr(env, '_monitor'):
|
||||
del env._monitor
|
||||
|
||||
# Stop tracking this for autoclose
|
||||
monitor_closer.unregister(self._monitor_id)
|
||||
|
Reference in New Issue
Block a user