Fix: Hyperopt breaks when self.dynamic_pairlist is set to True

This commit is contained in:
mrpabloyeah
2025-09-09 20:17:14 +02:00
parent 43be752847
commit 55201b6224

View File

@@ -1587,7 +1587,7 @@ class Backtesting:
# Loop for each main candle.
self.check_abort()
if self.dynamic_pairlist:
if self.dynamic_pairlist and self.pairlists:
self.pairlists.refresh_pairlist()
pairs = self.pairlists.whitelist