Muse Dash: Change Exception to Option Error and Update to Muse Radio FM106 (#5374)

* Change Exception to OptionError

* Update to Muse Radio FM106.

* Add Scipio's suggestion.

Co-authored-by: Scipio Wright <scipiowright@gmail.com>

---------

Co-authored-by: Scipio Wright <scipiowright@gmail.com>
This commit is contained in:
Justus Lind
2025-08-30 01:41:29 +10:00
committed by GitHub
parent 439be48f36
commit bb2ecb8a97
2 changed files with 7 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ from worlds.AutoWorld import World, WebWorld
from BaseClasses import Region, Item, ItemClassification, Tutorial
from typing import List, ClassVar, Type, Set
from math import floor
from Options import PerGameCommonOptions
from Options import PerGameCommonOptions, OptionError
from .Options import MuseDashOptions, md_option_groups
from .Items import MuseDashSongItem, MuseDashFixedItem
@@ -102,7 +102,8 @@ class MuseDashWorld(World):
# If the above fails, we want to adjust the difficulty thresholds.
# Easier first, then harder
if lower_diff_threshold <= 1 and higher_diff_threshold >= 11:
raise Exception("Failed to find enough songs, even with maximum difficulty thresholds.")
raise OptionError("Failed to find enough songs, even with maximum difficulty thresholds. "
"Too many songs have been excluded or set to be starter songs.")
elif lower_diff_threshold <= 1:
higher_diff_threshold += 1
else: