Explicitly raise OperationalException if markets are not loaded

correctly
This commit is contained in:
Matthias 2020-06-10 19:57:59 +02:00
parent c66ca957d9
commit 1e7826f392

View File

@ -150,6 +150,9 @@ class IPairList(ABC):
black_listed black_listed
""" """
markets = self._exchange.markets markets = self._exchange.markets
if not markets:
raise OperationalException(
'Markets not loaded. Make sure that exchange is initialized correctly.')
sanitized_whitelist: List[str] = [] sanitized_whitelist: List[str] = []
for pair in pairlist: for pair in pairlist: