Fix case with empty dict
This commit is contained in:
parent
2267a420a4
commit
a127e1db07
@ -17,6 +17,9 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
def trim_tickerlist(tickerlist: List[Dict], timerange: Tuple[Tuple, int, int]) -> List[Dict]:
|
def trim_tickerlist(tickerlist: List[Dict], timerange: Tuple[Tuple, int, int]) -> List[Dict]:
|
||||||
|
if not tickerlist:
|
||||||
|
return tickerlist
|
||||||
|
|
||||||
stype, start, stop = timerange
|
stype, start, stop = timerange
|
||||||
|
|
||||||
start_index = 0
|
start_index = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user