fix bug expecting seed
This commit is contained in:
parent
e8a6b83d43
commit
330baff33c
2 changed files with 1 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "hanabi"
|
||||
version = "1.1.1"
|
||||
version = "1.1.2"
|
||||
description = "Hanabi interface"
|
||||
readme = "README.md"
|
||||
license = { file = "LICENSE" }
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue