Skip to content

Commit 7738580

Browse files
Use ValueError
Signed-off-by: sfc-gh-mvashishtha <mahesh.vashishtha@snowflake.com>
1 parent 9ffbc92 commit 7738580

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modin/config/envvars.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def _get_value_from_config(cls) -> str:
182182
# Handling this case is tricky, in part because the combination of
183183
# Backend and Engine/StorageFormat may be invalid. For now just
184184
# disallow it.
185-
raise Exception("Can't specify both execution and backend in environment")
185+
raise ValueError("Can't specify both execution and backend in environment")
186186
return super()._get_value_from_config()
187187

188188

modin/tests/config/test_envvars.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ def test_conflicting_execution_and_backend_in_environment(
765765
monkeypatch.setitem(os.environ, cfg.Backend.varname, "Ray")
766766
monkeypatch.setitem(os.environ, execution_variable.varname, value)
767767
with pytest.raises(
768-
Exception,
768+
ValueError,
769769
match=re.escape("Can't specify both execution and backend in environment"),
770770
):
771771
variable_to_get.get()

0 commit comments

Comments
 (0)