diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2020-11-01 23:31:08 +0100 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2020-11-01 23:47:25 +0100 |
commit | bb062fcd972fb0a281fcdd743647f22d0852e737 (patch) | |
tree | 51b7f8346110172284d324f6a0f6a3a24ad73459 /swiftstory/Client.py | |
parent | 0fca30bbdac79d8d33e152e7e7116c5ffa1356ca (diff) |
Add UnsupportedLanguage exception
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'swiftstory/Client.py')
-rw-r--r-- | swiftstory/Client.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/swiftstory/Client.py b/swiftstory/Client.py index b1a6ae7..93ea232 100644 --- a/swiftstory/Client.py +++ b/swiftstory/Client.py @@ -2,7 +2,6 @@ import asyncio import logging from swiftstory.exception import WrongAction -from swiftstory.Status import error class Client: @@ -23,9 +22,6 @@ class Client: game = self.game_manager.join_game(game_name, lang) # XXX self.game will be assigned by game.try_join() - if game is None: - return error('Invalid language') - return game.try_join(self) def play_white_card(self, card_id): |