Improved exception message

This commit is contained in:
Matthias
2024-04-19 18:23:05 +02:00
parent c482b7e40f
commit 85725b5472

View File

@@ -107,7 +107,8 @@ class ExchangeWS:
f"watch done {pair}, {timeframe}, data {len(data)} "
f"in {time.time() - start:.2f}s")
except ccxt.BaseError:
logger.exception("Exception in continuously_async_watch_ohlcv")
logger.exception(
f"Exception in continuously_async_watch_ohlcv for {pair}, {timeframe}")
finally:
self._klines_watching.discard((pair, timeframe, candle_type))