Skip to content

Commit

Permalink
Work around strange Python 3.8 bug (Farama-Foundation#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerJL committed Jun 7, 2024
1 parent 62008e9 commit abdec3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gymnasium/wrappers/vector/rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,4 +201,5 @@ def close(self):

pygame.display.quit()
pygame.quit()
self.window = None # try to prevent strange Python 3.8 bug, later complaining about no self.window
super().close()

0 comments on commit abdec3f

Please sign in to comment.