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

Nothing to unfollow #13

Open
david-kariuki opened this issue Feb 7, 2023 · 6 comments
Open

Nothing to unfollow #13

david-kariuki opened this issue Feb 7, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@david-kariuki
Copy link

Hello there, I sam still getting the Nothing to unfollow message when trying to unfollow

@david-kariuki david-kariuki added the bug Something isn't working label Feb 7, 2023
@Correia-jpv
Copy link
Owner

Please, further describe context. What command are you using?

@david-kariuki
Copy link
Author

david-kariuki commented Feb 14, 2023

All the unfollow commands are not working

@Correia-jpv
Copy link
Owner

Would you be able to share logs?

@david-kariuki
Copy link
Author

david-kariuki commented Feb 24, 2023

This is the error I'm getting now

 Traceback (most recent call last):
    File "/home/user/bash/github-follow-bot-master/bot_unfollow.py", line 38, in <module>
    bot = GithubAPIBot(
    ^^^^^^^^^^^^^
    File "/home/user/bash/github-follow-bot-master/GithubAPIBot.py", line 68, in __init__
    self.getFollowings()
    File "/home/user/bash/github-follow-bot-master/GithubAPIBot.py", line 226, in getFollowings
    self.followings.extend(self.getUsers(url=f"https://api.github.com/users/{username}/following"))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/user/bash/github-follow-bot-master/GithubAPIBot.py", line 192, in getUsers
    and not (user["login"] in self.followings)
    ~~~~^^^^^^^^^
    TypeError: string indices must be integers, not 'str'

@Correia-jpv
Copy link
Owner

Ok, provide more context. What exactly is the command you are running? Have you changed any code at all?

@david-kariuki
Copy link
Author

david-kariuki commented Feb 25, 2023

No, I have not changed the code. I've cloned this again and ran it on opera using python3

python3 bot_unfollow.py -a

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

2 participants