mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
fix: improve error message for missing hyperopt parameters
This commit is contained in:
@@ -249,7 +249,10 @@ class HyperOptimizer:
|
||||
self.dimensions = [s for space in self.spaces.values() for s in space]
|
||||
if len(self.dimensions) == 0:
|
||||
raise OperationalException(
|
||||
"No hyperopt parameters found to optimize. Did you intend to use different spaces?"
|
||||
"No hyperopt parameters found to optimize."
|
||||
f"Available spaces: {', '.join(spaces)}. "
|
||||
"Check your strategy's parameter definitions or verify the configured spaces "
|
||||
"in your command."
|
||||
)
|
||||
self.o_dimensions = self.convert_dimensions_to_optuna_space(self.dimensions)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user