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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user