Change ["Dummy"] to [None].

This commit is contained in:
Bloodhunter4rc 2023-04-12 19:32:28 +02:00
parent 44bf59668b
commit 84d2d5e2a6

View File

@ -142,10 +142,10 @@ class RemotePairList(IPairList):
""" """
if self._init_done: if self._init_done:
if self._pair_cache.get('pairlist') == ["Empty"]: if self._pair_cache.get('pairlist') != [None]:
return []
else:
pairlist = self._pair_cache.get('pairlist') pairlist = self._pair_cache.get('pairlist')
else:
return []
else: else:
pairlist = [] pairlist = []
@ -187,7 +187,7 @@ class RemotePairList(IPairList):
if pairlist: if pairlist:
self._pair_cache['pairlist'] = pairlist.copy() self._pair_cache['pairlist'] = pairlist.copy()
else: else:
self._pair_cache['pairlist'] = ["Empty"] self._pair_cache['pairlist'] = [None]
if time_elapsed != 0.0: if time_elapsed != 0.0:
self.log_once(f'Pairlist Fetched in {time_elapsed} seconds.', logger.info) self.log_once(f'Pairlist Fetched in {time_elapsed} seconds.', logger.info)