Muse Dash: Change AttributeError to KeyError when Create_Item receives an item name that doesn't exist in the world (#4215)

* Change missing attribute error to key error.

* Swap to explicit key error

* Revert "Swap to explicit key error"

This reverts commit 719255891e543d15720b6bdeb293621266618efc.
This commit is contained in:
Justus Lind 2024-11-29 10:44:21 +10:00 committed by GitHub
parent 710cf4ebba
commit 1ba7700283
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ class MuseDashWorld(World):
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: