fix handling timeframes

This commit is contained in:
hroff-1902
2019-06-14 02:58:34 +03:00
parent 9657b1a17f
commit 04ea66c977
2 changed files with 5 additions and 5 deletions

View File

@@ -50,8 +50,10 @@ if args.config:
pairs = config['exchange']['pair_whitelist']
# Don't fail if ticker_interval is not in the configuration
timeframes = [config.get('ticker_interval')]
if config.get('ticker_interval'):
timeframes = args.timeframes or [config.get('ticker_interval')]
else:
timeframes = args.timeframes or ['1m', '5m']
else:
config = {
@@ -68,8 +70,7 @@ else:
}
}
}
timeframes = args.timeframes
timeframes = args.timeframes or ['1m', '5m']
configuration._load_logging_config(config)