mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
catch ccxt.BaseError
This commit is contained in:
parent
91fb9d0113
commit
d41b8cc96e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user