removed prints for strategy could not be loaded

changed back to ast, astor is not really needed.
This commit is contained in:
hippocritical
2023-01-02 23:35:51 +01:00
parent 697fad0ac4
commit 71ec32ac9e
2 changed files with 9 additions and 17 deletions

View File

@@ -26,17 +26,11 @@ def start_strategy_update(args: Dict[str, Any]) -> None:
filtered_strategy_objs = []
for args_strategy in args['strategy_list']:
found = False
for strategy_obj in strategy_objs:
if strategy_obj['name'] == args_strategy and strategy_obj not in filtered_strategy_objs:
filtered_strategy_objs.append(strategy_obj)
found = True
break
if not found:
print(f"strategy {strategy_obj['name']} could not be loaded or found and is skipped.")
for filtered_strategy_obj in filtered_strategy_objs:
# Initialize backtesting object
instance_strategy_updater = StrategyUpdater()
self.start(config, filtered_strategy_obj)
instance_strategy_updater.start(config, filtered_strategy_obj)