Skip to content

[REQUEST] #19

@victor0089

Description

@victor0089

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'

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions