8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dcf87c commit 3f733e9Copy full SHA for 3f733e9
github3/repos/repo.py
@@ -117,7 +117,9 @@ def _update_attributes(self, repo):
117
# License containing only key, name, url & featured
118
#: :class:`License <github3.licenses.License>` object representing the
119
#: repository license.
120
- self.original_license = License(repo.get('license', {}), self)
+ self.original_license = repo.get('license')
121
+ if self.original_license:
122
+ self.original_license = License(self.original_license, self)
123
124
#: Mirror property.
125
self.mirror_url = repo.get('mirror_url', '')
0 commit comments