Simplify code, no longer log "could not find rate"

closes #9031
This commit is contained in:
Matthias
2023-08-12 16:10:37 +02:00
parent 716b1cd002
commit 72bd4e816d
3 changed files with 10 additions and 14 deletions

View File

@@ -3522,7 +3522,7 @@ def test_get_valid_pair_combination(default_conf, mocker, markets):
assert ex.get_valid_pair_combination("ETH", "BTC") == "ETH/BTC"
assert ex.get_valid_pair_combination("BTC", "ETH") == "ETH/BTC"
with pytest.raises(DependencyException, match=r"Could not combine.* to get a valid pair."):
with pytest.raises(ValueError, match=r"Could not combine.* to get a valid pair."):
ex.get_valid_pair_combination("NOPAIR", "ETH")