From eb3ae5ca9dbd84dd3563039d5e4a36beac7f21c9 Mon Sep 17 00:00:00 2001 From: "suspendedtundra2@gmail.com" Date: Sun, 25 Feb 2024 04:26:40 -0600 Subject: [PATCH] feat: added a message for invalid uuids --- src/utils/referral_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/referral_utils.py b/src/utils/referral_utils.py index f0f8746..40406d2 100644 --- a/src/utils/referral_utils.py +++ b/src/utils/referral_utils.py @@ -14,6 +14,8 @@ async def validate_invites(inviter_ign, invitee_ign): inviter_ign, inviter_uuid = await get_mojang_profile(inviter_ign) if inviter_ign else (None, None) if not inviter_uuid: return f"{inviter_ign} is not a valid minecraft username.\nThis reference will not count." + if not invitee_uuid: + return f"Bot broke. \n{invitee_ign} is not a valid minecraft username.\nThis reference will not count." guild_data = await get_player_guild(inviter_uuid) guild_name = "Guildless" if not guild_data else guild_data["name"]