-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Labels
Description
Description:
After upgrading PyGithub to 2.8.0, IssueComment.user is no longer deserialized for bot accounts. This causes BadAttributeException when trying to access the comment.
Repro:
from github import Github
g = Github("token")
repo = g.get_repo("owner/repo")
pr = repo.get_pull(1234)
comments = pr.get_issue_comments()
print(comments[0]) # crashes if comment is from a botTraceback:
github.GithubException.BadAttributeException: (
{'login': '...[bot]', 'type': 'Bot', ...},
<class 'type'>,
None
)pocmo, sdolender, pszymich and cletomartin