From d66b6d0115e620f8c12629a5822cf31d3e976a20 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sun, 1 Nov 2020 23:01:35 +0100 Subject: fix error not propagated when collecting cards Signed-off-by: Olivier Gayot --- swiftstory/Client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swiftstory/Client.py') diff --git a/swiftstory/Client.py b/swiftstory/Client.py index 45e2f96..93aa900 100644 --- a/swiftstory/Client.py +++ b/swiftstory/Client.py @@ -39,7 +39,7 @@ class Client: def collect_cards(self): if self.game is None: - error('You have to join a game first') + return error('You have to join a game first') return self.game.try_collect_cards(self.player) def designate_card(self, card_id): -- cgit v1.2.3