File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ def _get_value_from_config(cls) -> str:
182
182
# Handling this case is tricky, in part because the combination of
183
183
# Backend and Engine/StorageFormat may be invalid. For now just
184
184
# 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" )
186
186
return super ()._get_value_from_config ()
187
187
188
188
Original file line number Diff line number Diff line change @@ -765,7 +765,7 @@ def test_conflicting_execution_and_backend_in_environment(
765
765
monkeypatch .setitem (os .environ , cfg .Backend .varname , "Ray" )
766
766
monkeypatch .setitem (os .environ , execution_variable .varname , value )
767
767
with pytest .raises (
768
- Exception ,
768
+ ValueError ,
769
769
match = re .escape ("Can't specify both execution and backend in environment" ),
770
770
):
771
771
variable_to_get .get ()
You can’t perform that action at this time.
0 commit comments