From 8ebcd7b68a4f5b37ea1d7e593526e6d015330f5f Mon Sep 17 00:00:00 2001 From: Worros Date: Sun, 22 Mar 2009 02:17:48 +0900 Subject: [PATCH] Fix crash on Stars tourney import If importing a tourney and the line was marked as crap this test crashed the importer --- pyfpdb/fpdb_simple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/fpdb_simple.py b/pyfpdb/fpdb_simple.py index fc6c13b2..b0263888 100644 --- a/pyfpdb/fpdb_simple.py +++ b/pyfpdb/fpdb_simple.py @@ -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]: