From 5bf2efa01d2b2d2200327e2838ee4668e3e2879e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 23 Jan 2022 17:43:34 +0200 Subject: [PATCH] fds --- files/routes/discord.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/files/routes/discord.py b/files/routes/discord.py index 8c221478f7..2ece5401d1 100644 --- a/files/routes/discord.py +++ b/files/routes/discord.py @@ -69,10 +69,7 @@ def discord_redirect(v): x=x.json() - try: - token=x["access_token"] - except KeyError: - abort(403) + token=x["access_token"] url="https://discord.com/api/users/@me"