improve pairlistmanager errorhandling
This commit is contained in:
@@ -23,17 +23,19 @@ class PairListManager():
|
||||
self._blacklist = self._config['exchange'].get('pair_blacklist', [])
|
||||
self._pairlists: List[IPairList] = []
|
||||
self._tickers_needed = False
|
||||
pairlists = self._config.get('pairlists', None)
|
||||
if not pairlists:
|
||||
pairlists = [{'method': "StaticPairList"}]
|
||||
for pl in pairlists:
|
||||
|
||||
for pl in self._config.get('pairlists', None):
|
||||
if 'method' not in pl:
|
||||
logger.warning(f"No method in {pl}")
|
||||
continue
|
||||
pairl = PairListResolver(pl.get('method'),
|
||||
exchange, self, config,
|
||||
pl.get('config')).pairlist
|
||||
self._tickers_needed = pairl.needstickers or self._tickers_needed
|
||||
self._pairlists.append(pairl)
|
||||
|
||||
if not self._pairlists:
|
||||
raise OperationalException("No Pairlist defined!!")
|
||||
raise OperationalException("No Pairlist defined!")
|
||||
|
||||
@property
|
||||
def whitelist(self) -> List[str]:
|
||||
|
Reference in New Issue
Block a user