Log which player's plando has caused a placement failure

This commit is contained in:
Fabian Dill 2021-06-14 23:42:13 +02:00
parent 1e0b44bdc5
commit 59a56c803a
1 changed files with 65 additions and 62 deletions

View File

@ -367,6 +367,7 @@ def distribute_planned(world: MultiWorld):
world_name_lookup = world.world_name_lookup
for player in world.player_ids:
try:
placement: PlandoItem
for placement in world.plando_items[player]:
if placement.location in key_drop_data:
@ -433,3 +434,5 @@ def distribute_planned(world: MultiWorld):
world.itempool.remove(item)
except ValueError:
placement.warn(f"Could not remove {item} from pool as it's already missing from it.")
except Exception as e:
raise Exception(f"Error running plando for player {player} ({world.player_names[player]})") from e