Remove unneeded exception handlers

This commit is contained in:
Matthias 2019-09-28 10:52:53 +02:00
parent b6ac898f8f
commit fa8c61382b

View File

@ -863,7 +863,7 @@ class Exchange:
if not self.exchange_has("fetchTrades"):
# TODO: Maybe don't stop the bot ... ?
raise OperationalException("This exchange does not suport downloading Trades.")
try:
if self._trades_pagination == 'time':
return await self._async_get_trade_history_time(
pair=pair, since=since,
@ -877,16 +877,6 @@ class Exchange:
raise OperationalException(f"Exchange {self.name} does use neither time, "
f"nor id based pagination")
except ccxt.NotSupported as e:
raise OperationalException(
f'Exchange {self._api.name} does not support fetching historical trade data.'
f'Message: {e}') from e
except (ccxt.NetworkError, ccxt.ExchangeError) as e:
raise TemporaryError(f'Could not load trade history due to {e.__class__.__name__}. '
f'Message: {e}') from e
except ccxt.BaseError as e:
raise OperationalException(f'Could not fetch trade data. Msg: {e}') from e
def get_historic_trades(self, pair: str,
since: Optional[int] = None,
until: Optional[int] = None,