fix: improve resiliance

This commit is contained in:
Matthias
2025-11-02 10:45:28 +01:00
parent 6dc2547177
commit 39c37980d5

View File

@@ -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: