Add test to ensure --hyperopt-loss is mandatory

This commit is contained in:
Matthias
2020-10-05 20:36:16 +02:00
parent 14e87ed4a1
commit 8c2f763193
3 changed files with 8 additions and 5 deletions

View File

@@ -82,8 +82,4 @@ class HyperOptLossResolver(IResolver):
hyperoptloss.__class__.ticker_interval = str(config['timeframe'])
hyperoptloss.__class__.timeframe = str(config['timeframe'])
if not hasattr(hyperoptloss, 'hyperopt_loss_function'):
raise OperationalException(
f"Found HyperoptLoss class {hyperoptloss_name} does not "
"implement `hyperopt_loss_function`.")
return hyperoptloss