aboutsummaryrefslogtreecommitdiff
path: root/authentication/utils.py
diff options
context:
space:
mode:
authorBobby <[email protected]>2024-09-17 11:18:19 -0400
committerBobby <[email protected]>2024-09-17 11:18:19 -0400
commit73b2fe9b15d82ca765ece90b5418620d49bb0eb3 (patch)
tree1d7e37bce438b4a9fbaf8af85eb828d8e47bd119 /authentication/utils.py
parent6f020479fd11e394d87c4026f83323bc708e4f52 (diff)
downloadyugen-73b2fe9b15d82ca765ece90b5418620d49bb0eb3.tar.xz
yugen-73b2fe9b15d82ca765ece90b5418620d49bb0eb3.zip
Fixed Avatar
Diffstat (limited to 'authentication/utils.py')
-rw-r--r--authentication/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/authentication/utils.py b/authentication/utils.py
index ac0364e..ba4fa95 100644
--- a/authentication/utils.py
+++ b/authentication/utils.py
@@ -185,7 +185,7 @@ def authenticate_user(exchange_response):
"discord_refresh_token": refresh_token,
"discord_token_type": token_type,
"discord_username": discord_user["username"],
- "discord_avatar": discord_user["avatar"],
+ "discord_avatar": discord_user["avatar"] if discord_user["avatar"] is not None else "",
"discord_banner": discord_user["banner"] if discord_user["banner"] is not None else "",
"discord_global_name": discord_user["global_name"],
"discord_guild_name": discord_user["guild_name"],