Skip to content

Commit

Permalink
Fix bug added
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudo-rnd-thoughts authored Jan 17, 2025
1 parent 975b5a6 commit d9438fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gymnasium/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@ def set_wrapper_attr(self, name: str, value: Any):
# check if the base environment has the wrapper, otherwise, we set it on the top (this) wrapper
if hasattr(sub_env, name):
setattr(sub_env, name, value)

setattr(self, name, value)
else:
setattr(self, name, value)

def __str__(self):
"""Returns the wrapper name and the :attr:`env` representation string."""
Expand Down

0 comments on commit d9438fc

Please sign in to comment.