Skip to content

Commit 5b34d1e

Browse files
committed
[CCXTExchange] improve exchange load error
1 parent d294f76 commit 5b34d1e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

octobot_trading/exchanges/connectors/ccxt/ccxt_connector.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,11 @@ async def _ensure_auth(self):
269269
reload=not self.exchange_manager.use_cached_markets,
270270
market_filter=self.exchange_manager.market_filter,
271271
)
272-
except Exception as e:
272+
except Exception as err:
273+
if self.force_authentication:
274+
raise
273275
# Is probably handled in exchange tentacles, important thing here is that authentication worked
274-
self.logger.debug(f"Error when checking exchange connection: {e}. This should not be an issue.")
276+
self.logger.info(f"Error when checking exchange connection: {err}. This should not be an issue.")
275277

276278
def _create_client(self, force_unauth=False):
277279
self.client, self.is_authenticated = self._client_factory(force_unauth)

0 commit comments

Comments
 (0)