fixed exceptions from trying to request git-committers from gitea (fixes #4)

pull/5/head
Langenfeld 2021-04-19 14:06:39 +02:00
rodzic ac41c212b4
commit 4ccdc39ff4
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -439,7 +439,10 @@ class Commit(GiteaApiObject):
def __init__(self, gitea, id: int): def __init__(self, gitea, id: int):
super(Commit, self).__init__(gitea, id=id) super(Commit, self).__init__(gitea, id=id)
fields_to_parsers = {"author": lambda gitea, u: User.parse_response(gitea, u)} fields_to_parsers = {
# NOTE: do not try to parse gitea-users from git-committers/authors, as
# they are not necessarily users of gitea as well
}
@classmethod @classmethod
def request(cls, gitea, owner, repo): def request(cls, gitea, owner, repo):