mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-08-05 11:16:14 -07:00
Options: Add an OptionError to specify bad options caused the failure (#2343)
* Options: Add an OptionError to specify bad options caused the failure * inherit from ValueError instead of RuntimeError since this error should be thrown via bad input --------- Co-authored-by: NewSoupVi <[email protected]>
This commit is contained in:
co-authored by
NewSoupVi
parent
0ed0de3daa
commit
6f8b8fc9c9
@@ -21,6 +21,10 @@ if typing.TYPE_CHECKING:
|
||||
import pathlib
|
||||
|
||||
|
||||
class OptionError(ValueError):
|
||||
pass
|
||||
|
||||
|
||||
class Visibility(enum.IntFlag):
|
||||
none = 0b0000
|
||||
template = 0b0001
|
||||
|
||||
Reference in New Issue
Block a user