fix: don't raise freqAI in pre-mature shutdown scenarios

This commit is contained in:
Matthias
2026-04-04 08:41:08 +02:00
parent 8a98b6172c
commit 65f494be26
+2 -1
View File
@@ -222,7 +222,8 @@ class IStrategy(ABC, HyperStrategyMixin):
"""
Clean up FreqAI and child threads
"""
self.freqai.shutdown()
if getattr(self, "freqai", None):
self.freqai.shutdown()
@abstractmethod
def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: