From 0bb7cc8ab59c7014adcae2f2f12f68b1fea3cc45 Mon Sep 17 00:00:00 2001 From: Gerald Lonlas Date: Mon, 5 Mar 2018 20:49:45 -0800 Subject: [PATCH] Hyperopt: fix 'Ran out of input' error --- freqtrade/optimize/hyperopt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/optimize/hyperopt.py b/freqtrade/optimize/hyperopt.py index 0d9289929..39bade554 100644 --- a/freqtrade/optimize/hyperopt.py +++ b/freqtrade/optimize/hyperopt.py @@ -524,7 +524,7 @@ class Hyperopt(Backtesting): self.logger.info('Preparing Trials..') signal.signal(signal.SIGINT, self.signal_handler) # read trials file if we have one - if os.path.exists(self.trials_file): + if os.path.exists(self.trials_file) and os.path.getsize(self.trials_file) > 0: self.trials = self.read_trials() self.current_tries = len(self.trials.results)