From 87b75134016ed748b5d6732a21fc7ca053ca2631 Mon Sep 17 00:00:00 2001 From: hippocritical Date: Fri, 3 Mar 2023 18:53:09 +0100 Subject: [PATCH] fixed --strategy-list moved ast comments to requirements.txt >=1.0.0 (since that is the first version that adds the comments unparsing) --- freqtrade/commands/strategy_utils_commands.py | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/commands/strategy_utils_commands.py b/freqtrade/commands/strategy_utils_commands.py index dc94f2b67..0124b73b6 100644 --- a/freqtrade/commands/strategy_utils_commands.py +++ b/freqtrade/commands/strategy_utils_commands.py @@ -25,7 +25,7 @@ def start_strategy_update(args: Dict[str, Any]) -> None: config, enum_failed=False, recursive=config.get('recursive_strategy_search', False)) filtered_strategy_objs = [] - if hasattr(args, "strategy_list"): + if 'strategy_list' in args: for args_strategy in args['strategy_list']: for strategy_obj in strategy_objs: if (strategy_obj['name'] == args_strategy diff --git a/requirements.txt b/requirements.txt index 40bae63b6..14c468da0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -58,4 +58,4 @@ schedule==1.1.0 websockets==10.4 janus==1.0.0 -astor~=0.8.1 +ast-comments>=1.0.0