mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
use correct return code on error
This commit is contained in:
parent
95d6c9c678
commit
bea9a3304e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user