From 9b7038990fa3f9e5372e7374358b93a6a84e4269 Mon Sep 17 00:00:00 2001 From: Sakimori Date: Tue, 5 Jan 2021 17:28:45 -0500 Subject: [PATCH] strip trailing spaces from team name and slogan --- the_prestige.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/the_prestige.py b/the_prestige.py index 9c121f1..a324c19 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -1069,8 +1069,8 @@ def team_from_collection(newteam_json): def team_from_message(command): newteam = games.team() roster = command.split("\n",1)[1].split("\n") - newteam.name = roster[0] #first line is team name - newteam.slogan = roster[1] #second line is slogan + newteam.name = roster[0].strip() #first line is team name + newteam.slogan = roster[1].strip() #second line is slogan if not roster[2].strip() == "": raise CommandError("The third line should be blank. It wasn't, so just in case, we've not done anything on our end.") pitchernum = len(roster)-2