mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-16 21:01:14 +00:00
fix: improve resiliance
This commit is contained in:
@@ -104,7 +104,9 @@ class HyperStrategyMixin:
|
|||||||
"""
|
"""
|
||||||
spaces = ["buy", "sell", "protection"]
|
spaces = ["buy", "sell", "protection"]
|
||||||
spaces += [
|
spaces += [
|
||||||
s for s in self.config["spaces"] if s not in spaces and s not in HYPEROPT_BUILTIN_SPACES
|
s
|
||||||
|
for s in self.config.get("spaces", [])
|
||||||
|
if s not in spaces and s not in HYPEROPT_BUILTIN_SPACES
|
||||||
]
|
]
|
||||||
|
|
||||||
for space in spaces:
|
for space in spaces:
|
||||||
|
|||||||
Reference in New Issue
Block a user