8000 Fixes the KeyError exception breaking the tests · doismellburning/github3.py@ced6d55 · GitHub
[go: up one dir, main page]

Skip to content

Commit ced6d55

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)
0