change wording of log message
This commit is contained in:
		| @@ -40,8 +40,8 @@ class PriceFilter(IPairList): | |||||||
|         if ticker['last'] is None: |         if ticker['last'] is None: | ||||||
|  |  | ||||||
|             self.log_on_refresh(logger.info, |             self.log_on_refresh(logger.info, | ||||||
|                                 f"Removed {ticker['symbol']} from whitelist, " |                                 f"Removed {ticker['symbol']} from whitelist, because " | ||||||
|                                 "because 'last' is empty (Usually no trade in the last 24h).") |                                 "ticker['last'] is empty (Usually no trade in the last 24h).") | ||||||
|             return False |             return False | ||||||
|         compare = ticker['last'] + self._exchange.price_get_one_pip(ticker['symbol'], |         compare = ticker['last'] + self._exchange.price_get_one_pip(ticker['symbol'], | ||||||
|                                                                     ticker['last']) |                                                                     ticker['last']) | ||||||
|   | |||||||
| @@ -226,7 +226,8 @@ def test_VolumePairList_whitelist_gen(mocker, whitelist_conf, shitcoinmarkets, t | |||||||
|                               r'would be <= stop limit.*', caplog) |                               r'would be <= stop limit.*', caplog) | ||||||
|         if pairlist['method'] == 'PriceFilter': |         if pairlist['method'] == 'PriceFilter': | ||||||
|             assert (log_has_re(r'^Removed .* from whitelist, because 1 unit is .*%$', caplog) or |             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: | def test_gen_pair_whitelist_not_supported(mocker, default_conf, tickers) -> None: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user