Revert several undesired changes

This commit is contained in:
Matthias
2022-06-23 20:47:51 +02:00
parent 8bf0bf10c5
commit 2b07d34611
4 changed files with 9 additions and 9 deletions

View File

@@ -70,7 +70,7 @@ class PriceFilter(IPairList):
:param ticker: ticker dict as returned from ccxt.fetch_tickers()
:return: True if the pair can stay, false if it should be removed
"""
if ticker.get('last') is None or ticker.get('last') == 0:
if ticker.get('last', None) is None or ticker.get('last') == 0:
self.log_once(f"Removed {pair} from whitelist, because "
"ticker['last'] is empty (Usually no trade in the last 24h).",
logger.info)