mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-05-31 04:58:12 +00:00
Fix license object again
This commit is contained in:
parent
0fa6f2b0fa
commit
6ed2deb92d
1 changed files with 5 additions and 0 deletions
|
@ -49,6 +49,11 @@ class Repository(APIOBJECT):
|
|||
|
||||
if 'license' in key and value is None:
|
||||
setattr(self, key, None)
|
||||
continue
|
||||
|
||||
if 'license' in key and value is not None:
|
||||
setattr(self, key, value['name'])
|
||||
continue
|
||||
|
||||
else:
|
||||
setattr(self, key, value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue