game: fix: error when game is not in the gamemanager
This commit is contained in:
parent
5313e6e0d9
commit
d5ab413806
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user