game: fix: error when game is not in the gamemanager

This commit is contained in:
starnakin 2024-02-27 10:15:01 +01:00 committed by AdrienLSH
parent 5313e6e0d9
commit d5ab413806

View File

@ -8,6 +8,8 @@ class GameManager():
self._game_list: list[Game] = []
def remove(self, game: Game):
if (game not in self._game_list):
return
self._game_list.remove(game)
def get(self, game_id: int) -> Game: