Catch errors on reload_markets

This commit is contained in:
Matthias
2019-04-24 21:56:24 +02:00
parent fa7866291a
commit 65dcb6acea
2 changed files with 19 additions and 2 deletions

View File

@@ -222,8 +222,11 @@ class Exchange(object):
> arrow.utcnow().timestamp):
return None
logger.debug("Performing scheduled market reload..")
self._api.load_markets(reload=True)
self._last_markets_refresh = arrow.utcnow().timestamp
try:
self._api.load_markets(reload=True)
self._last_markets_refresh = arrow.utcnow().timestamp
except ccxt.NetworkError:
logger.exception("Could not reload markets.")
def validate_pairs(self, pairs: List[str]) -> None:
"""