diff options
| author | Bobby <[email protected]> | 2024-08-25 02:58:26 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2024-08-25 02:58:26 -0400 |
| commit | 822635e9d02fa11e386954d109e61bec7852ad3c (patch) | |
| tree | 05c99af52002a610536bee8d18e01f11adfbddef /authentication | |
| parent | afbc59377fd5ea71630181bd1fbd9b4a21634032 (diff) | |
| download | yugen-822635e9d02fa11e386954d109e61bec7852ad3c.tar.xz yugen-822635e9d02fa11e386954d109e61bec7852ad3c.zip | |
fix banner
Diffstat (limited to 'authentication')
| -rw-r--r-- | authentication/utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/authentication/utils.py b/authentication/utils.py index 2921e6e..f9a225a 100644 --- a/authentication/utils.py +++ b/authentication/utils.py @@ -93,7 +93,9 @@ def authenticate_user(exchange_response): user.discord_token_type = token_type user.discord_username = discord_user["username"] user.discord_avatar = discord_user["avatar"] - user.discord_banner = discord_user["banner"] + user.discord_banner = ( + discord_user["banner"] if "banner" in discord_user else "" + ) user.discord_global_name = discord_user["global_name"] user.save() |
