fix crash when backtest-result.json not exist

This commit is contained in:
AxelCh
2019-01-23 14:11:05 -04:00
committed by Matthias
parent 06e0616fb0
commit eec7276393
5 changed files with 473 additions and 389 deletions

View File

@@ -107,8 +107,8 @@ def plot_profit(args: Namespace) -> None:
exit(1)
# Take pairs from the cli otherwise switch to the pair in the config file
if args.pair:
filter_pairs = args.pair
if args.pairs:
filter_pairs = args.pairs
filter_pairs = filter_pairs.split(',')
else:
filter_pairs = config['exchange']['pair_whitelist']