Skip to content

Commit

Permalink
ValueError instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Exempt-Medic authored Aug 11, 2024
1 parent 63c1ed4 commit 2a94038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ def as_dict(self, *option_names: str, casing: str = "snake") -> typing.Dict[str,
:param casing: case of the keys to return. Supports `snake`, `camel`, `pascal`, `kebab`
"""
if not option_names:
raise Exception("options.as_dict was used without any option names.")
raise ValueError("options.as_dict was used without any option names.")
option_results = {}
for option_name in option_names:
if option_name in type(self).type_hints:
Expand Down

0 comments on commit 2a94038

Please sign in to comment.