NameError: name 'true' is not defined
-
I am trying to connect to the api through python. Currently I am getting NameError with folloiwng message. Is there a bug?
~\Anaconda3\envs\angel1\lib\site-packages\smartapi\smartConnect.py in generateSession(self, clientCode, password)
242 loginResultObject=self._postRequest("api.login",params)
243
--> 244 if loginResultObject['status']==True or true:
245 jwtToken=loginResultObject['data']['jwtToken']
246 self.setAccessToken(jwtToken)NameError: name 'true' is not defined
-
@mg25 try changing your api key it might pix it, It worked for me
-
Hi @leena-1234 @sajy @mg25 , please try to reinstall latest python SDK and check again
-
@admin NameError: name 'true' is not defined
occurring while trying to connect to API through Python script. Please guide on this. -
@admin yes this is bbug . pl. remove
-
@mg25 said in NameError: name 'true' is not defined:
Is there a bug?
Hi @mg25 , there are no bugs in Python SDK.
Please refer : https://github.com/angelbroking-github/smartapi-python