diff --git a/Github/objects/repo.py b/Github/objects/repo.py index f951d89..f7ed397 100644 --- a/Github/objects/repo.py +++ b/Github/objects/repo.py @@ -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)