Re: TypeError: 'NoneType' object is not subscriptable
Hi @admin123 @admin @administrators @adminatkremlin
I am getting this error, few minutes back this was a fully functional code, I just enterted new TOTP, and then it started giving me this error.
C:\Work\PythonWorks\AngelAPI\WorKOPY\001\smartapi-python-main\venv\Scripts\python.exe C:\Work\PythonWorks\AngelAPI\WorKOPY\001\smartapi-python-main\example\sample.py
Traceback (most recent call last):
File "C:\Work\PythonWorks\AngelAPI\WorKOPY\001\smartapi-python-main\example\sample.py", line 14, in <module>
data = obj.generateSession("S465418","8585","051289")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Work\PythonWorks\AngelAPI\WorKOPY\001\smartapi-python-main\SmartApi\smartConnect.py", line 235, in generateSession
id = user['data']['clientcode']
~~~~~~~~~~~~^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
Process finished with exit code 1