Skip to content

Commit

Permalink
use OptionError type
Browse files Browse the repository at this point in the history
  • Loading branch information
Ixrec committed Jul 16, 2024
1 parent 08904aa commit 4472928
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion worlds/outer_wilds/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from typing import Any, Dict, TextIO

from BaseClasses import Tutorial
from Options import OptionError
from worlds.AutoWorld import WebWorld, World
from .Coordinates import coordinate_description, generate_random_coordinates
from .DBLayout import generate_random_db_layout
Expand Down Expand Up @@ -46,7 +47,7 @@ def interpret_slot_data(slot_data: Dict[str, Any]) -> Dict[str, Any]:
def generate_early(self) -> None:
# validate options
if self.options.shuffle_spacesuit and self.options.spawn != Spawn.option_vanilla:
raise NotImplementedError('Incompatible options: shuffle_spacesuit is true and spawn is non-vanilla (%s)', self.options.spawn)
raise OptionError('Incompatible options: shuffle_spacesuit is true and spawn is non-vanilla (%s)', self.options.spawn)

# implement Universal Tracker support
if hasattr(self.multiworld, "generation_is_fake"):
Expand Down

0 comments on commit 4472928

Please sign in to comment.