From 96b55a5bff3c630266b36dc10d98a31fed871fd9 Mon Sep 17 00:00:00 2001 From: Worros Date: Mon, 6 Dec 2010 12:48:25 +0800 Subject: [PATCH] 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 --- pyfpdb/PokerStarsToFpdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/PokerStarsToFpdb.py b/pyfpdb/PokerStarsToFpdb.py index d17067d2..17474d4b 100644 --- a/pyfpdb/PokerStarsToFpdb.py +++ b/pyfpdb/PokerStarsToFpdb.py @@ -297,7 +297,7 @@ class PokerStars(HandHistoryConverter): hand.tablename = info[key] if key == 'BUTTON': hand.buttonpos = info[key] - if key == 'MAX': + if key == 'MAX' and info[key] != None: hand.maxseats = int(info[key]) if key == 'MIXED':