fix bug expecting seed

This commit is contained in:
Maximilian Keßler 2023-08-08 12:23:42 +02:00
parent e8a6b83d43
commit 330baff33c
Signed by: max
GPG Key ID: BCC5A619923C0BA5
2 changed files with 1 additions and 5 deletions

View File

@ -1,6 +1,6 @@
[project]
name = "hanabi"
version = "1.1.1"
version = "1.1.2"
description = "Hanabi interface"
readme = "README.md"
license = { file = "LICENSE" }

View File

@ -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)