Skip to content

Commit fa8f63e

Browse files
committed
Account for non-location names in checked_always_locations
1 parent f659e8a commit fa8f63e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Hints.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,10 @@ def build_world_gossip_hints(spoiler: Spoiler, world: World, checked_locations:
15571557
# Raise error if hint copies is zero
15581558
for location_name, kinds in checked_locations.items():
15591559
if CheckedKind.ALWAYS in kinds:
1560-
location = world.get_location(location_name)
1560+
try:
1561+
location = world.get_location(location_name)
1562+
except KeyError:
1563+
continue
15611564
if location.item.name in bingoBottlesForHints and world.settings.hint_dist == 'bingo':
15621565
always_item = 'Bottle'
15631566
else:

0 commit comments

Comments
 (0)