From 330baff33c265ef9bdfa7c72a27deb1e840b1531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Tue, 8 Aug 2023 12:23:42 +0200 Subject: [PATCH] fix bug expecting seed --- pyproject.toml | 2 +- src/hanabi/live/hanab_live.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6464399..407a946 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "hanabi" -version = "1.1.1" +version = "1.1.2" description = "Hanabi interface" readme = "README.md" license = { file = "LICENSE" } diff --git a/src/hanabi/live/hanab_live.py b/src/hanabi/live/hanab_live.py index c0b7b8f..01d6b8d 100644 --- a/src/hanabi/live/hanab_live.py +++ b/src/hanabi/live/hanab_live.py @@ -49,10 +49,6 @@ def parse_json_game(game_json: Dict) -> Tuple[HanabLiveInstance, List[Action]]: if num_players < 2 or num_players > 6: raise ParseError(num_players) - seed = game_json.get('seed', None) - if type(seed) != str: - raise ParseError("Unexpected seed, expected string, got {}".format(seed)) - options = game_json.get('options', {}) var_id = variants.variant_id(options.get('variant', 'No Variant')) deck_plays = options.get('deckPlays', False)