From 0363dc2bcd9cb3a2e2245c417068367c2d91945d Mon Sep 17 00:00:00 2001 From: Interitio Date: Tue, 2 Sep 2025 09:04:14 +1000 Subject: [PATCH] Catch IndexError for user upgrade. --- profiles/twitch/component.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiles/twitch/component.py b/profiles/twitch/component.py index 51e4608..d539d6b 100644 --- a/profiles/twitch/component.py +++ b/profiles/twitch/component.py @@ -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: