Use BaseError, not NetworkError in exception handler

This commit is contained in:
Matthias 2019-04-24 22:20:05 +02:00
parent 65dcb6acea
commit 45ecbc91e8

View File

@ -225,7 +225,7 @@ class Exchange(object):
try:
self._api.load_markets(reload=True)
self._last_markets_refresh = arrow.utcnow().timestamp
except ccxt.NetworkError:
except ccxt.BaseError:
logger.exception("Could not reload markets.")
def validate_pairs(self, pairs: List[str]) -> None: