You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if the user name have anumbers it doesn't work becuase of data type
Traceback (most recent call last):
File "/home/-----/github-follow-bot/bot_follow.py", line 38, in
bot = GithubAPIBot(
^^^^^^^^^^^^^
File "/home/-----/github-follow-bot/GithubAPIBot.py", line 68, in init
self.getFollowings()
File "/home/----/github-follow-bot/GithubAPIBot.py", line 226, in getFollowings
self.followings.extend(self.getUsers(url=f"https://api.github.com/users/{username}/following"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/----/github-follow-bot/GithubAPIBot.py", line 192, in getUsers
and not (user["login"] in self.followings)
~~~~^^^^^^^^^
TypeError: string indices must be integers, not 'str'
The text was updated successfully, but these errors were encountered:
if the user name have anumbers it doesn't work becuase of data type
Traceback (most recent call last):
File "/home/-----/github-follow-bot/bot_follow.py", line 38, in
bot = GithubAPIBot(
^^^^^^^^^^^^^
File "/home/-----/github-follow-bot/GithubAPIBot.py", line 68, in init
self.getFollowings()
File "/home/----/github-follow-bot/GithubAPIBot.py", line 226, in getFollowings
self.followings.extend(self.getUsers(url=f"https://api.github.com/users/{username}/following"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/----/github-follow-bot/GithubAPIBot.py", line 192, in getUsers
and not (user["login"] in self.followings)
~~~~^^^^^^^^^
TypeError: string indices must be integers, not 'str'
The text was updated successfully, but these errors were encountered: