Nothing to unfollow
david-kariuki opened this issue · 6 comments
david-kariuki commented
Hello there, I sam still getting the Nothing to unfollow
message when trying to unfollow
Correia-jpv commented
Please, further describe context. What command are you using?
david-kariuki commented
All the unfollow commands are not working
Correia-jpv commented
Would you be able to share logs?
david-kariuki commented
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 commented
Ok, provide more context. What exactly is the command you are running? Have you changed any code at all?
david-kariuki commented
No, I have not changed the code. I've cloned this again and ran it on opera using python3
python3 bot_unfollow.py -a