Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
NewSoupVi authored Jun 13, 2024
1 parent 7ad9495 commit 9a63482
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,8 @@ def __init__(self, value: int) -> None:
elif value > self.range_end and value not in self.special_range_names.values():
raise Exception(f"{value} is higher than maximum {self.range_end} for option {self.__class__.__name__} " +
f"and is also not one of the supported named special values: {self.special_range_names}")


# See docstring
for key in self.special_range_names:
if key != key.lower():
raise Exception(f"{self.__class__.__name__} has an invalid special_range_names key: {key}. "
Expand Down

0 comments on commit 9a63482

Please sign in to comment.