Plando: verify from_pool type (#2200)

This commit is contained in:
Fabian Dill
2023-11-24 17:41:56 +01:00
committed by GitHub
parent a8e03420ec
commit d892622ab1

View File

@@ -792,6 +792,9 @@ def distribute_planned(world: MultiWorld) -> None:
block['force'] = 'silent'
if 'from_pool' not in block:
block['from_pool'] = True
elif not isinstance(block['from_pool'], bool):
from_pool_type = type(block['from_pool'])
raise Exception(f'Plando "from_pool" has to be boolean, not {from_pool_type} for player {player}.')
if 'world' not in block:
target_world = False
else: