From a127e1db073e8b1c16fd2fc8c69256bf4c550c55 Mon Sep 17 00:00:00 2001 From: Anton Date: Sat, 28 Apr 2018 01:40:48 +0300 Subject: [PATCH] Fix case with empty dict --- freqtrade/optimize/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/freqtrade/optimize/__init__.py b/freqtrade/optimize/__init__.py index 58eb28cb1..1f32ae2d5 100644 --- a/freqtrade/optimize/__init__.py +++ b/freqtrade/optimize/__init__.py @@ -17,6 +17,9 @@ logger = logging.getLogger(__name__) def trim_tickerlist(tickerlist: List[Dict], timerange: Tuple[Tuple, int, int]) -> List[Dict]: + if not tickerlist: + return tickerlist + stype, start, stop = timerange start_index = 0