Skip to content

Commit 017cf76

Browse files
committed
Merge 'Fix TypeError during debug logging in hint placement' (#2455)
2 parents 48ca707 + d055248 commit 017cf76

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* For consistency with other location types, excluded pot/crate/beehive/wonderitem/etc. locations no longer behave as if their shuffle setting was off.
1717
* The Triforce Piece counter display has been moved to a CRT-safe position.
1818
* Fix Complete Mask Quest not working if Zelda's Letter is found in Kakariko.
19+
* Fix a bug where some custom hint distributions could cause the generator to fail with a `TypeError`.
1920

2021
## Other changes
2122
* Big poe souls can now be collected while riding Epona.

Hints.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,10 @@ def build_world_gossip_hints(spoiler: Spoiler, world: World, checked_locations:
16501650
else:
16511651
logging.getLogger('').debug('Placed %s hint for %s.', hint_type, ', '.join([location.name for location in locations]))
16521652
if not place_ok and custom_fixed:
1653-
logging.getLogger('').debug('Failed to place %s fixed hint for %s.', hint_type, ', '.join([location.name for location in locations]))
1653+
if locations is None:
1654+
logging.getLogger('').debug('Failed to place %s fixed hint.', hint_type)
1655+
else:
1656+
logging.getLogger('').debug('Failed to place %s fixed hint for %s.', hint_type, ', '.join([location.name for location in locations]))
16541657
fixed_hint_types.insert(0, hint_type)
16551658

16561659

version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '8.3.34'
1+
__version__ = '8.3.35'
22

33
# This is a supplemental version number for branches based off of main dev.
44
supplementary_version = 0

0 commit comments

Comments
 (0)