From 6e05f856b470c26e5682bf8495e34bac0e78b042 Mon Sep 17 00:00:00 2001 From: "A. Schueler" Date: Sat, 22 May 2021 11:55:03 +0200 Subject: [PATCH] Abort _find_price when cryptomap is empty after retry --- freqtrade/rpc/fiat_convert.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/freqtrade/rpc/fiat_convert.py b/freqtrade/rpc/fiat_convert.py index 5b73663c8..4987f8ce1 100644 --- a/freqtrade/rpc/fiat_convert.py +++ b/freqtrade/rpc/fiat_convert.py @@ -145,6 +145,9 @@ class CryptoToFiatConverter: if self._cryptomap == {} and self._backoff <= datetime.datetime.now().timestamp(): self._load_cryptomap() + # return 0.0 if we still dont have data to check, no reason to proceed + if self._cryptomap == {}: + return 0.0 if crypto_symbol not in self._cryptomap: # return 0 for unsupported stake currencies (fiat-convert should not break the bot)