From 7d111b1fddcea549f70523029e7998d2e9607125 Mon Sep 17 00:00:00 2001 From: Sakimori Date: Sun, 27 Dec 2020 14:40:40 -0500 Subject: [PATCH] fixed typeerror at lines 131 and 135 of prestige --- the_prestige.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/the_prestige.py b/the_prestige.py index 1f995aa..89683f7 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -128,11 +128,11 @@ class StartGameCommand(Command): await msg.channel.send("Something about that command tripped us up. Either we couldn't find a team, or you gave us a bad number of innings.") return - if innings < 2: + if innings is not None and innings < 2: await msg.channel.send("Anything less than 2 innings isn't even an outing. Try again.") return - elif innings > 30 and msg.author.id not in config()["owners"]: + elif innings is not None and innings > 30 and msg.author.id not in config()["owners"]: await msg.channel.send("Y'all can't behave, so we've limited games to 30 innings. Ask xvi to start it with more if you really want to.") return