diff --git a/freqtrade/pairlist/PriceFilter.py b/freqtrade/pairlist/PriceFilter.py index 31d0eec58..2f7e98e24 100644 --- a/freqtrade/pairlist/PriceFilter.py +++ b/freqtrade/pairlist/PriceFilter.py @@ -40,8 +40,8 @@ class PriceFilter(IPairList): if ticker['last'] is None: self.log_on_refresh(logger.info, - f"Removed {ticker['symbol']} from whitelist, " - "because 'last' is empty (Usually no trade in the last 24h).") + f"Removed {ticker['symbol']} from whitelist, because " + "ticker['last'] is empty (Usually no trade in the last 24h).") return False compare = ticker['last'] + self._exchange.price_get_one_pip(ticker['symbol'], ticker['last']) diff --git a/tests/pairlist/test_pairlist.py b/tests/pairlist/test_pairlist.py index 9184beaa0..7dfe8bcca 100644 --- a/tests/pairlist/test_pairlist.py +++ b/tests/pairlist/test_pairlist.py @@ -226,7 +226,8 @@ def test_VolumePairList_whitelist_gen(mocker, whitelist_conf, shitcoinmarkets, t r'would be <= stop limit.*', caplog) if pairlist['method'] == 'PriceFilter': assert (log_has_re(r'^Removed .* from whitelist, because 1 unit is .*%$', caplog) or - log_has_re(r"^Removed .* from whitelist, because 'last' is empty.*", caplog)) + log_has_re(r"^Removed .* from whitelist, because ticker\['last'\] is empty.*", + caplog)) def test_gen_pair_whitelist_not_supported(mocker, default_conf, tickers) -> None: