From fa79b7ef9da101e54261c8b0e1d9045604dd9f31 Mon Sep 17 00:00:00 2001 From: VarMonke Date: Sun, 27 Mar 2022 11:38:36 +0530 Subject: [PATCH] Typo --- Github/http.py | 3 +-- Github/objects.py | 9 +-------- 2 files changed, 2 insertions(+), 10 deletions(-) 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