Stars: Fix regression.
New test file regression-test-files/cash/Stars/Flop/LHE-10max-USD-1.00-2.00-No_max_seats.txt crashed Stars. Put guard to make sure MAX has a value
This commit is contained in:
parent
352c40baab
commit
96b55a5bff
|
@ -297,7 +297,7 @@ class PokerStars(HandHistoryConverter):
|
||||||
hand.tablename = info[key]
|
hand.tablename = info[key]
|
||||||
if key == 'BUTTON':
|
if key == 'BUTTON':
|
||||||
hand.buttonpos = info[key]
|
hand.buttonpos = info[key]
|
||||||
if key == 'MAX':
|
if key == 'MAX' and info[key] != None:
|
||||||
hand.maxseats = int(info[key])
|
hand.maxseats = int(info[key])
|
||||||
|
|
||||||
if key == 'MIXED':
|
if key == 'MIXED':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user