Compare commits

..

No commits in common. "11164bb84a81cf5bdd0d0e893fa301025977dda8" and "3b864412597742fc27af235f340de11e81001752" have entirely different histories.

1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ def authorize(request):
try: try:
token = oauth.discord.authorize_access_token(request) token = oauth.discord.authorize_access_token(request)
except: except:
return redirect('accounts:edit') bad_request(request, "Connection refused")
response = oauth.discord.get('users/@me', token=token) response = oauth.discord.get('users/@me', token=token)
response = response.json() response = response.json()
discord_id = response['id'] discord_id = response['id']