mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-07-26 07:57:45 +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:
|
if 'license' in key and value is None:
|
||||||
setattr(self, key, None)
|
setattr(self, key, None)
|
||||||
|
continue
|
||||||
|
|
||||||
|
if 'license' in key and value is not None:
|
||||||
|
setattr(self, key, value['name'])
|
||||||
|
continue
|
||||||
|
|
||||||
else:
|
else:
|
||||||
setattr(self, key, value)
|
setattr(self, key, value)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue