8000 Fix last failing item in our tests · pythonthings/github3.py@5d757e3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d757e3

Browse files
committed
Fix last failing item in our tests
If RepoCommit.commit is None we cannot get the message
1 parent a5ea3c7 commit 5d757e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github3/repos/commit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def _update_attributes(self, commit):
6464
self._uniq = self.sha
6565

6666
#: The commit message
67-
self.message = self.commit.message
67+
self.message = getattr(self.commit, 'message', None)
6868

6969
def _repr(self):
7070
return '<Repository Commit [{0}]>'.format(self.sha[:7])

0 commit comments

Comments
 (0)
0