Login Error
-
KeyError: 'M848526'
PS C:\Users\Arohi2017> & C:/Users/Arohi2017/AppData/Local/Programs/Python/Python38/python.exe c:/Users/Arohi2017/Desktop/PYTEST/login.py
Traceback (most recent call last):
File "c:/Users/Arohi2017/Desktop/PYTEST/login.py", line 9, in <module>
data = obj.generateSession("M848526","0012",pyotp.TOTP("JYME7N2JDZNNCJZQBBSYZ2SE3E").now())
File "C:\Users\Arohi2017\AppData\Local\Programs\Python\Python38\lib\site-packages\smartapi\smartConnect.py", line 239, in generateSession
id=user['data']['M848526']
KeyError: 'M848526'
PS C:\Users\Arohi2017>