From d79983c791a3534d083960358d86631a80648d10 Mon Sep 17 00:00:00 2001 From: robcaulk Date: Wed, 25 May 2022 14:55:19 +0200 Subject: [PATCH] try to pass flake8 --- freqtrade/commands/data_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/commands/data_commands.py b/freqtrade/commands/data_commands.py index c7e6a7b84..2019413b5 100644 --- a/freqtrade/commands/data_commands.py +++ b/freqtrade/commands/data_commands.py @@ -50,7 +50,7 @@ def start_download_data(args: Dict[str, Any]) -> None: exchange = ExchangeResolver.load_exchange(config['exchange']['name'], config, validate=False) markets = [p for p, m in exchange.markets.items() if market_is_active(m) or config.get('include_inactive')] - if config.get('freqai') is not None: + if config.get('freqai', {}): full_pairs = config['pairs'] + [pair for pair in config['freqai']['corr_pairlist'] if pair not in config['pairs']] expanded_pairs = expand_pairlist(full_pairs, markets)