TodoLodo / cod-python-api

Call Of Duty API Library for python
https://cod-python-api.todolodo.xyz
GNU General Public License v3.0
57 stars 17 forks source link

TypeError when using the Friend List func or any other. #16

Closed Kaya-333 closed 1 year ago

Kaya-333 commented 1 year ago

Hi! I went to do some tests involving your project and I came across an error when trying to use any of the functions, in this case below it was using the list of friends. Another thing, can I use the same cookie every time or do I need to collect it before using it?

Exception has occurred: TypeError 'NoneType' object is not iterable File "C:\Users\Santa Kaya\Desktop\cod-python-api-2.0.1\cod_api__init.py", line 556, in info for i in rawData['identities']: File "C:\Users\Santa Kaya\Desktop\cod-python-api-2.0.1\cod_api__init.py", line 567, in priv d = self.info() File "C:\Users\Santa Kaya\Desktop\cod-python-api-2.0.1\cod_api__init.py", line 610, in settingsAsync p, g = self.priv() File "C:\Users\Santa Kaya\Desktop\cod-python-api-2.0.1\cod_api\init__.py", line 615, in settings return asyncio.run(self.settingsAsync()) File "C:\Users\Santa Kaya\Desktop\cod-python-api-2.0.1\main.py", line 11, in settings = api.Me.settings() # returns data of type dict

https://prnt.sc/pw9YVARChv_E

TodoLodo commented 1 year ago

hey Thanks for pointing out this error, we will correct our library code and include the changes in the next update

Thanks