Add pair to exception msg
This commit is contained in:
parent
221950cdc4
commit
684cb54992
@ -736,10 +736,11 @@ class Exchange:
|
|||||||
f'Exchange {self._api.name} does not support fetching historical candlestick data.'
|
f'Exchange {self._api.name} does not support fetching historical candlestick data.'
|
||||||
f'Message: {e}') from e
|
f'Message: {e}') from e
|
||||||
except (ccxt.NetworkError, ccxt.ExchangeError) as e:
|
except (ccxt.NetworkError, ccxt.ExchangeError) as e:
|
||||||
raise TemporaryError(f'Could not load ticker history due to {e.__class__.__name__}. '
|
raise TemporaryError(f'Could not load ticker history for pair {pair} due to '
|
||||||
f'Message: {e}') from e
|
f'{e.__class__.__name__}. Message: {e}') from e
|
||||||
except ccxt.BaseError as e:
|
except ccxt.BaseError as e:
|
||||||
raise OperationalException(f'Could not fetch ticker data. Msg: {e}') from e
|
raise OperationalException(f'Could not fetch ticker data for pair {pair}. '
|
||||||
|
f'Msg: {e}') from e
|
||||||
|
|
||||||
@retrier_async
|
@retrier_async
|
||||||
async def _async_fetch_trades(self, pair: str,
|
async def _async_fetch_trades(self, pair: str,
|
||||||
|
Loading…
Reference in New Issue
Block a user