diff --git a/src/twyn/main.py b/src/twyn/main.py index 32adfed..52ac9e9 100644 --- a/src/twyn/main.py +++ b/src/twyn/main.py @@ -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") return SELECTOR_METHOD_MAPPING[selector_method]()