use correct return code on error

This commit is contained in:
gcarq 2018-06-08 02:01:46 +02:00
parent 95d6c9c678
commit bea9a3304e

View File

@ -93,7 +93,7 @@ def plot_profit(args: Namespace) -> None:
'Impossible to load the strategy. Please check the file "user_data/strategies/%s.py"', 'Impossible to load the strategy. Please check the file "user_data/strategies/%s.py"',
config.get('strategy') config.get('strategy')
) )
exit(0) exit(1)
# Load the profits results # Load the profits results
try: try:
@ -104,7 +104,7 @@ def plot_profit(args: Namespace) -> None:
logger.critical( logger.critical(
'File "backtest-result.json" not found. This script require backtesting ' 'File "backtest-result.json" not found. This script require backtesting '
'results to run.\nPlease run a backtesting with the parameter --export.') '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 # Take pairs from the cli otherwise switch to the pair in the config file
if args.pair: if args.pair: