remove commented code

This commit is contained in:
Matthias Voppichler 2018-04-21 22:58:09 +02:00
parent 33c5a8ee90
commit 9f477fce0f
2 changed files with 1 additions and 2 deletions

View File

@ -182,7 +182,7 @@ class CryptoToFiatConverter(object):
raise ValueError('The fiat {} is not supported.'.format(fiat_symbol))
if crypto_symbol not in self.CRYPTOMAP:
# simply return 0 for unsupported stake currencies (fiat-convert should not break the bot)
# return 0 for unsupported stake currencies (fiat-convert should not break the bot)
logger.warning("unsupported crypto-symbol %s - returning 0.0", crypto_symbol)
return 0.0
try:

View File

@ -77,7 +77,6 @@ def test_fiat_convert_find_price(mocker):
with pytest.raises(ValueError, match=r'The fiat ABC is not supported.'):
fiat_convert._find_price(crypto_symbol='BTC', fiat_symbol='ABC')
# with pytest.raises(ValueError, match=r'The crypto symbol XRP is not supported.'):
assert fiat_convert.get_price(crypto_symbol='XRP', fiat_symbol='USD') == 0.0
mocker.patch('freqtrade.fiat_convert.CryptoToFiatConverter._find_price', return_value=12345.0)