Skip to content

Commit

Permalink
adds a custom KeyError for raising on world.create_item() if the pass…
Browse files Browse the repository at this point in the history
…ed in name is invalid
  • Loading branch information
qwint committed Nov 21, 2024
1 parent 859ae87 commit 21039c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions worlds/AutoWorld.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
perf_logger = logging.getLogger("performance")


class InvalidItemError(KeyError):
pass


class AutoWorldRegister(type):
world_types: Dict[str, Type[World]] = {}
__file__: str
Expand Down

0 comments on commit 21039c9

Please sign in to comment.