From 0bf915054d95f82bd5bb5f313a825d25c2ad0219 Mon Sep 17 00:00:00 2001 From: robcaulk Date: Sat, 28 May 2022 11:22:32 +0200 Subject: [PATCH] handle key check correctly --- freqtrade/freqai/freqai_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqai/freqai_interface.py b/freqtrade/freqai/freqai_interface.py index ab2d37753..75c00988f 100644 --- a/freqtrade/freqai/freqai_interface.py +++ b/freqtrade/freqai/freqai_interface.py @@ -225,7 +225,7 @@ class IFreqaiModel(ABC): def check_if_feature_list_matches_strategy(self, dataframe: DataFrame, dh: FreqaiDataKitchen) -> None: strategy_provided_features = dh.find_features(dataframe) - if dh.data['training_features_list_raw']: + if 'training_features_list_raw' in dh.data: feature_list = dh.data['training_features_list_raw'] else: feature_list = dh.training_features_list