Skip to content

Commit

Permalink
Plando: verify from_pool type (ArchipelagoMW#2200)
Browse files Browse the repository at this point in the history
  • Loading branch information
Berserker66 authored Nov 24, 2023
1 parent a8e0342 commit d892622
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Fill.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,9 @@ def failed(warning: str, force: typing.Union[bool, str]) -> 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:
Expand Down

0 comments on commit d892622

Please sign in to comment.