From 6cdfa1bd5b883fc684d6a7da2abeb9f776f2c9ff Mon Sep 17 00:00:00 2001 From: Sakimori Date: Fri, 15 Jan 2021 16:08:39 -0500 Subject: [PATCH] fixed handling on league claim --- the_prestige.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/the_prestige.py b/the_prestige.py index 77e3adb..e9ca92c 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -878,10 +878,12 @@ class LeagueClaimCommand(Command): if league.owner is None: league.owner = [msg.author.id] leagues.save_league(league) - await msg.channel.send(f"The {league} commissioner is doing a great job. That's you, by the way.") + await msg.channel.send(f"The {league.name} commissioner is doing a great job. That's you, by the way.") + return else: await msg.channel.send("That league has already been claimed!") - await msg.channel.send("Can't find that league, boss.") + else: + await msg.channel.send("Can't find that league, boss.") class LeagueAddOwnersCommand(Command): name = "addleagueowner"