Use BaseError, not NetworkError in exception handler
This commit is contained in:
parent
65dcb6acea
commit
45ecbc91e8
@ -225,7 +225,7 @@ class Exchange(object):
|
|||||||
try:
|
try:
|
||||||
self._api.load_markets(reload=True)
|
self._api.load_markets(reload=True)
|
||||||
self._last_markets_refresh = arrow.utcnow().timestamp
|
self._last_markets_refresh = arrow.utcnow().timestamp
|
||||||
except ccxt.NetworkError:
|
except ccxt.BaseError:
|
||||||
logger.exception("Could not reload markets.")
|
logger.exception("Could not reload markets.")
|
||||||
|
|
||||||
def validate_pairs(self, pairs: List[str]) -> None:
|
def validate_pairs(self, pairs: List[str]) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user