Simplify return valuef rom _load_object

This commit is contained in:
Matthias
2019-07-21 15:25:48 +02:00
parent 88eb93da52
commit 08ca260e82
4 changed files with 11 additions and 19 deletions

View File

@@ -147,10 +147,8 @@ class StrategyResolver(IResolver):
# register temp path with the bot
abs_paths.insert(0, temp.resolve())
(strategy, module_path) = self._load_object(paths=abs_paths,
object_type=IStrategy,
object_name=strategy_name,
kwargs={'config': config})
strategy = self._load_object(paths=abs_paths, object_type=IStrategy,
object_name=strategy_name, kwargs={'config': config})
if strategy:
strategy._populate_fun_len = len(getfullargspec(strategy.populate_indicators).args)
strategy._buy_fun_len = len(getfullargspec(strategy.populate_buy_trend).args)