(20241224) Exception handling.
This commit is contained in:
@@ -265,10 +265,10 @@ class ZerodhaKiteTradingController(TradingController):
|
|||||||
# Start by assuming failure:
|
# Start by assuming failure:
|
||||||
symbol_list = TradingSymbolListBrokerResponse()
|
symbol_list = TradingSymbolListBrokerResponse()
|
||||||
|
|
||||||
try:
|
# Fit the token into the model:
|
||||||
|
zerodha_token = ZerodhaKiteAuthTokens(**auth_token.token)
|
||||||
|
|
||||||
# Fit the token into the model:
|
try:
|
||||||
zerodha_token = ZerodhaKiteAuthTokens(**auth_token.token)
|
|
||||||
|
|
||||||
# Now create an instance of the Kite:
|
# Now create an instance of the Kite:
|
||||||
kite = KiteConnect(api_key = auth_token.auth["apiKey"])
|
kite = KiteConnect(api_key = auth_token.auth["apiKey"])
|
||||||
|
|||||||
Reference in New Issue
Block a user