mgp25 / psn-api

PlayStation Network API in python
131 stars 26 forks source link

Bug in GrabNPSSO() ? #7

Closed a7ypically closed 6 years ago

a7ypically commented 6 years ago

Hi,

I could not get the npsso value as the function GrabNPSSO seems to have an indent bug. The first case where two factor auth is used never fills self.npsso.

I had to indent back the whole block of code starting from: if hasattr(data, 'error'):

to get it working.

After that all works well, so thanks!

mgp25 commented 6 years ago

Hello @a7ypically,

Fixed in the latest commit: https://github.com/mgp25/psn-api/commit/8bb42b1c8677300730a9596685201248f24a23ca

Regards