catch ccxt.BaseError

This commit is contained in:
hroff-1902 2019-07-03 05:13:41 +03:00
parent 91fb9d0113
commit d41b8cc96e

View File

@ -176,7 +176,7 @@ class Exchange(object):
api = getattr(ccxt_module, name.lower())(ex_config)
except (KeyError, AttributeError):
raise OperationalException(f'Exchange {name} is not supported')
except ccxt.NotSupported as e:
except ccxt.BaseError as e:
raise OperationalException(f"Initialization of ccxt failed. Reason: {e}")
self.set_sandbox(api, exchange_config, name)