From bea9a3304e1f1218e151978cd2715c5c101520fc Mon Sep 17 00:00:00 2001 From: gcarq Date: Fri, 8 Jun 2018 02:01:46 +0200 Subject: [PATCH] use correct return code on error --- scripts/plot_profit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/plot_profit.py b/scripts/plot_profit.py index a5ac00169..803bf71de 100755 --- a/scripts/plot_profit.py +++ b/scripts/plot_profit.py @@ -93,7 +93,7 @@ def plot_profit(args: Namespace) -> None: 'Impossible to load the strategy. Please check the file "user_data/strategies/%s.py"', config.get('strategy') ) - exit(0) + exit(1) # Load the profits results try: @@ -104,7 +104,7 @@ def plot_profit(args: Namespace) -> None: logger.critical( 'File "backtest-result.json" not found. This script require backtesting ' 'results to run.\nPlease run a backtesting with the parameter --export.') - exit(0) + exit(1) # Take pairs from the cli otherwise switch to the pair in the config file if args.pair: