Shoonya-Dev / ShoonyaApi-py

140 stars 132 forks source link

No Valid response from NorenApi.py login #185

Open ENGINEERDK opened 3 hours ago

ENGINEERDK commented 3 hours ago

Currently if Login is not successful the login method do not return the expected response of NOT_OK with reason instead None.

It should result the response, so that Developers could handle and take care according to the reason of login failure.

This statement to return None should be removed from NorenApi.py

image
ENGINEERDK commented 3 hours ago

if resDict['stat'] != 'Ok':
return resDict

This will be sufficient, will help developers catch the reasons for failures.