Fix case with empty dict

This commit is contained in:
Anton 2018-04-28 01:40:48 +03:00
parent 2267a420a4
commit a127e1db07

View File

@ -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