Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Kaya-333 opened this issue Nov 25, 2022 · 1 comment
Closed

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

Kaya-333 opened this issue Nov 25, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Kaya-333
Copy link

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
Copy link
Owner

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

Thanks

@TodoLodo TodoLodo pinned this issue Nov 25, 2022
@TodoLodo TodoLodo added the bug Something isn't working label Nov 25, 2022
@TodoLodo TodoLodo self-assigned this Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants