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:
parent
710cf4ebba
commit
1ba7700283
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue