Skip to content

Commit

Permalink
Remove 'as e' in exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ayesh-ahmed committed Dec 31, 2024
1 parent b8f7d34 commit 7c4042a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gymnasium/envs/mujoco/mujoco_rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def free(self):
glfw.make_context_current(None)
glfw.destroy_window(self.window)
self.window = None
except AttributeError as e:
except AttributeError:
# Handle cases where attributes are missing due to improper environment closure
warn(
"Environment was not properly closed using 'env.close()'. Please ensure to close the environment explicitly. "
Expand Down

0 comments on commit 7c4042a

Please sign in to comment.