diff --git a/Github/http.py b/Github/http.py index a7c5de5..cf6c002 100644 --- a/Github/http.py +++ b/Github/http.py @@ -47,5 +47,4 @@ async def get_user(session: aiohttp.ClientSession, username: str) -> GitHubUserD result = await session.get(USERS_URL.format(username)) if result.status == 200: return await result.json() - raise UserNotFound - + raise UserNotFound \ No newline at end of file diff --git a/Github/objects.py b/Github/objects.py index f115659..66d8e77 100644 --- a/Github/objects.py +++ b/Github/objects.py @@ -80,11 +80,4 @@ class User(_BaseUser): async def get_user(self, session: aiohttp.ClientSession, username: str) -> 'User': """Returns a User object from the username, with the mentions slots.""" response = await http.get_user(session, username) - return User(response, session) - - - - - - - \ No newline at end of file + return User(response, session) \ No newline at end of file