Skip to content

Commit

Permalink
Muse Dash: Change AttributeError to KeyError when Create_Item receive…
Browse files Browse the repository at this point in the history
…s an item name that doesn't exist in the world (ArchipelagoMW#4215)

* Change missing attribute error to key error.

* Swap to explicit key error

* Revert "Swap to explicit key error"

This reverts commit 7192558.
  • Loading branch information
DeamonHunter authored and AustinSumigray committed Jan 4, 2025
1 parent d990f34 commit 6f92062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worlds/musedash/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def create_item(self, name: str) -> Item:
if album:
return MuseDashSongItem(name, self.player, album)

song = self.md_collection.song_items.get(name)
song = self.md_collection.song_items[name]
return MuseDashSongItem(name, self.player, song)

def get_filler_item_name(self) -> str:
Expand Down

0 comments on commit 6f92062

Please sign in to comment.