From fd020ead7fa70bc8e520544a501a8ecb4a340afa Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sun, 22 Nov 2020 22:53:02 +0100 Subject: [PATCH] Fix FillError message assembly crashing the error --- Fill.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Fill.py b/Fill.py index 9051f93a..1212f6e0 100644 --- a/Fill.py +++ b/Fill.py @@ -54,8 +54,9 @@ def fill_restrictive(world, base_state: CollectionState, locations, itempool, si for location in region.locations: if location.item and not location.event: placements.append(location) + raise FillError(f'No more spots to place {item_to_place}, locations {locations} are invalid. ' - f'Already placed {len(placements)}: {", ".join(placements)}') + f'Already placed {len(placements)}: {", ".join(str(place) for place in placements)}') world.push_item(spot_to_fill, item_to_place, False) locations.remove(spot_to_fill)