Catch IndexError for user upgrade.

This commit is contained in:
2025-09-02 09:04:14 +10:00
parent ce46bd49fe
commit 0363dc2bcd

View File

@@ -51,6 +51,8 @@ class ProfilesComponent(cmds.Component):
args['avatar'] = user.profile_image.url
except twitchio.HTTPException:
pass
except IndexError:
pass
profile = await UserProfile.create(**args)
await TwitchProfileLink.create(profileid=profile.profileid, userid=userid)
elif touch: