-
Notifications
You must be signed in to change notification settings - Fork 6
Fix missing raise keyword in _get_selector_method #465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -279,7 +279,7 @@ def _get_dependencies_list( | |
| def _get_selector_method(selector_method: str) -> SelectorMethod: | ||
| """Return the selector_method from set of available ones.""" | ||
| if selector_method not in SELECTOR_METHOD_MAPPING: | ||
| InvalidSelectorMethodError("Invalid selector method") | ||
| raise InvalidSelectorMethodError("Invalid selector method") | ||
|
|
||
|
Comment on lines
279
to
283
|
||
| return SELECTOR_METHOD_MAPPING[selector_method]() | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The raised error message is quite generic. For parity with the config validation (e.g., listing allowed selector methods), consider including the invalid value and the valid options (from
SELECTOR_METHOD_MAPPING.keys()) to make CLI/config failures easier to diagnose.