FTP: Fix issue with RIT hands.

RIT hands on FTP have two summary sections. If a player is sitting out
and needs to be removed from the player list, they were removed twice.

The second remove from a python dict is a crash. Patch avoids this
situation
This commit is contained in:
Worros 2011-04-07 17:54:47 +10:00
parent eec01083b1
commit 4f4a905609

View File

@ -356,8 +356,9 @@ class Fulltilt(HandHistoryConverter):
# Remove any listed as sitting out in the summary as start of hand info unreliable
n = self.re_SummarySitout.finditer(post)
for b in n:
del plist[b.group('PNAME')]
#print "DEBUG: Deleting '%s' from player dict" %(b.group('PNAME'))
if b.group('PNAME') in plist:
#print "DEBUG: Deleting '%s' from player dict" %(b.group('PNAME'))
del plist[b.group('PNAME')]
# Add remaining players
for a in plist: