From 51dd7fa58ecb1a48c2526c9a4ca5a8f8f22a1bd3 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 20 Oct 2024 15:22:50 +0200 Subject: [PATCH] chore: ensure empty leverage tiers files don't cause an exception --- freqtrade/exchange/exchange.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index a0cd018ed..f7fb8a9c7 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -3189,7 +3189,7 @@ class Exchange: if updated_dt < datetime.now(timezone.utc) - cache_time: logger.info("Cached leverage tiers are outdated. Will update.") return None - return tiers["data"] + return tiers.get("data") except Exception: logger.exception("Error loading cached leverage tiers. Refreshing.") return None