Open
Description
atlassian-python-api 3.28.1
from atlassian.bitbucket import Cloud
for repository in project.repositories.each():
for commit in repository.commits.each():
log.info("commit = %s", commit.message)
Raises the following exception:
for commit in repository.commits.each():
File "C:\Users\gunar\AppData\Local\Programs\Python\Python310\lib\site-packages\atlassian\bitbucket\cloud\repositories\commits.py", line 38, in each
yield self.__get_object(super(Commits, self).get(commit.get("hash")))
File "C:\Users\gunar\AppData\Local\Programs\Python\Python310\lib\site-packages\atlassian\bitbucket\cloud\repositories\commits.py", line 16, in __get_object
return Commit(data, **self._new_session_args)
File "C:\Users\gunar\AppData\Local\Programs\Python\Python310\lib\site-packages\atlassian\bitbucket\cloud\repositories\commits.py", line 63, in __init__
super(Commit, self).__init__(None, *args, data=data, expected_type="commit", **kwargs)
File "C:\Users\gunar\AppData\Local\Programs\Python\Python310\lib\site-packages\atlassian\bitbucket\cloud\base.py", line 22, in __init__
raise ValueError("Expected type of data is [{}], got [{}].".format(expected_type, self.get_data("type")))
ValueError: Expected type of data is [commit], got [None].
According to Debug, the HTTP response returns a full list of commits.
Metadata
Metadata
Assignees
Labels
No labels