Fix crash on Stars tourney import

If importing a tourney and the line was marked as crap this test crashed
the importer
This commit is contained in:
Worros 2009-03-22 02:17:48 +09:00
parent 1e788621a5
commit 8ebcd7b68a

View File

@ -714,7 +714,7 @@ def filterCrap(site, hand, isTourney):
hand[i] = False
elif (hand[i].find(": ")!=-1 and site=="ftp" and hand[i].find("Seat ")==-1 and hand[i].find(": Table")==-1): #filter ftp chat
hand[i] = False
if isTourney:
if isTourney and not hand[i] == False:
if (hand[i].endswith(" is sitting out") and (not hand[i].startswith("Seat "))):
hand[i] = False
elif hand[i]: