1
Fork 0
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:
VarMonke 2022-03-30 17:51:09 +05:30
parent 0fa6f2b0fa
commit 6ed2deb92d

View file

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