fix: don't raise freqAI in pre-mature shutdown scenarios
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user