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:
		
							parent
							
								
									eec01083b1
								
							
						
					
					
						commit
						4f4a905609
					
				|  | @ -356,8 +356,9 @@ class Fulltilt(HandHistoryConverter): | ||||||
|             # Remove any listed as sitting out in the summary as start of hand info unreliable |             # Remove any listed as sitting out in the summary as start of hand info unreliable | ||||||
|             n = self.re_SummarySitout.finditer(post) |             n = self.re_SummarySitout.finditer(post) | ||||||
|             for b in n: |             for b in n: | ||||||
|                 del plist[b.group('PNAME')] |                 if b.group('PNAME') in plist: | ||||||
|                     #print "DEBUG: Deleting '%s' from player dict" %(b.group('PNAME')) |                     #print "DEBUG: Deleting '%s' from player dict" %(b.group('PNAME')) | ||||||
|  |                     del plist[b.group('PNAME')] | ||||||
| 
 | 
 | ||||||
|         # Add remaining players |         # Add remaining players | ||||||
|         for a in plist: |         for a in plist: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user