Skip to content

Commit ced6d55

Browse files
committed
Fixes the KeyError exception breaking the tests
1 parent 38098d3 commit ced6d55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github3/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init__(self, commit, session=None):
6161
#: dict containing at least the name, email and date the commit was
6262
# created
6363
self.author = commit.get('author')
64-
self._author_name = self.author['name']
64+
self._author_name = self.author.get('name', '')
6565

6666
#: dict containing similar information to the author attribute
6767
self.committer = commit.get('committer')

0 commit comments

Comments
 (0)