1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-05-17 22:45:08 +00:00

Fixing get_repo returning None for license, and erroring

This commit is contained in:
VarMonke 2022-03-29 20:02:12 +05:30
parent 45db6d5120
commit 0fa6f2b0fa
2 changed files with 6 additions and 3 deletions

View file

@ -80,7 +80,7 @@ class GHClient:
return User(await http.get_user(self.session, username), self.session)
async def get_repo(self, owner: str, repo_name: str) -> Repository:
"""Fetch aGithub repository from it's name."""
"""Fetch a Github repository from it's name."""
return Repository(await http.get_repo_from_name(self.session, owner, repo_name), self.session)
async def get_org(self, org_name: str) -> Organization: