From 0dff72d7b02c3d64f8751c813f59fb8a4211e004 Mon Sep 17 00:00:00 2001 From: Guillaume De Saint Martin Date: Thu, 27 Nov 2025 09:05:31 +0100 Subject: [PATCH] [CCXTExchange] improve exchange load error --- octobot_trading/exchanges/connectors/ccxt/ccxt_connector.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/octobot_trading/exchanges/connectors/ccxt/ccxt_connector.py b/octobot_trading/exchanges/connectors/ccxt/ccxt_connector.py index 6d968ba78..848de67ec 100644 --- a/octobot_trading/exchanges/connectors/ccxt/ccxt_connector.py +++ b/octobot_trading/exchanges/connectors/ccxt/ccxt_connector.py @@ -269,9 +269,11 @@ async def _ensure_auth(self): reload=not self.exchange_manager.use_cached_markets, market_filter=self.exchange_manager.market_filter, ) - except Exception as e: + except Exception as err: + if self.force_authentication: + raise # Is probably handled in exchange tentacles, important thing here is that authentication worked - self.logger.debug(f"Error when checking exchange connection: {e}. This should not be an issue.") + self.logger.info(f"Error when checking exchange connection: {err}. This should not be an issue.") def _create_client(self, force_unauth=False): self.client, self.is_authenticated = self._client_factory(force_unauth)