(20241224) Exception handling.

This commit is contained in:
2024-12-24 15:08:57 +05:30
parent 0af9401feb
commit 52aa5c37e4
@@ -265,11 +265,11 @@ class ZerodhaKiteTradingController(TradingController):
# Start by assuming failure:
symbol_list = TradingSymbolListBrokerResponse()
try:
# Fit the token into the model:
zerodha_token = ZerodhaKiteAuthTokens(**auth_token.token)
try:
# Now create an instance of the Kite:
kite = KiteConnect(api_key = auth_token.auth["apiKey"])
kite.set_access_token(zerodha_token.accessToken)