diff options
Diffstat (limited to 'swiftstory/GameManager.py')
-rw-r--r-- | swiftstory/GameManager.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/swiftstory/GameManager.py b/swiftstory/GameManager.py index a7098bc..52ce554 100644 --- a/swiftstory/GameManager.py +++ b/swiftstory/GameManager.py @@ -1,6 +1,7 @@ import logging import os +from swiftstory.exception import UnsupportedLanguage from swiftstory.Game import Game from swiftstory.Cards import Cards @@ -20,7 +21,7 @@ class GameManager: def join_game(self, game_name, lang): if self.langs.get(lang) is None: - return None + raise UnsupportedLanguage(lang) games = self.langs[lang]['games'] black_cards = self.langs[lang]['black_cards'] |