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

[BUG] 'NoneType' object has no attribute 'get' #2023

Open
havij202025 opened this issue Sep 18, 2024 · 2 comments
Open

[BUG] 'NoneType' object has no attribute 'get' #2023

havij202025 opened this issue Sep 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@havij202025
Copy link

havij202025 commented Sep 18, 2024

hi guys. when i get direct messages "self._cl.direct_threads(amount=3)", show me this error "'NoneType' object has no attribute 'get'"
please help me.

@havij202025 havij202025 added the bug Something isn't working label Sep 18, 2024
@GrayHatZone
Copy link

i got same error with latest version of library

@OlivierPaquien
Copy link

Hi guys, i got same error, i fixed it by changing a line in instagrapi/extractors.py (function extract_direct_thread) :
if "inviter" in data: became if "inviter" in data and data["inviter"] is not None:

@subzeroid should I do a PR to fix it ?

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

No branches or pull requests

3 participants