Skip to content

Commit

Permalink
Merge pull request #165 from MiscGuild/bugfix
Browse files Browse the repository at this point in the history
feat: added a message for invalid uuids
  • Loading branch information
Amxgh authored Feb 25, 2024
2 parents 254bd9f + eb3ae5c commit 95f5166
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/referral_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 95f5166

Please sign in to comment.