diff --git a/pyfpdb/Hand.py b/pyfpdb/Hand.py index 8258e49d..b72ef9f1 100644 --- a/pyfpdb/Hand.py +++ b/pyfpdb/Hand.py @@ -329,7 +329,13 @@ Map the tuple self.gametype onto the pokerstars string describing it "4" : ("1", "2") } } - return betlist[self.sitename][self.bb] + try: + ret = betlist[self.sitename][self.bb] + except: + logging.warning("Don't know the small blind/big blind size for %s, big bet size %s." % (self.sitename, self.bb)) + ret = (Decimal(self.sb)/2,Decimal(self.bb)/2) + + return ret def writeHand(self, fh=sys.__stdout__): diff --git a/pyfpdb/PokerStarstoFpdb.py b/pyfpdb/PokerStarsToFpdb.py similarity index 97% rename from pyfpdb/PokerStarstoFpdb.py rename to pyfpdb/PokerStarsToFpdb.py index 3a022d4c..b437e4ce 100755 --- a/pyfpdb/PokerStarstoFpdb.py +++ b/pyfpdb/PokerStarsToFpdb.py @@ -69,7 +69,7 @@ from HandHistoryConverter import * class PokerStars(HandHistoryConverter): # Static regexes - re_GameInfo = re.compile('PokerStars Game #(?P[0-9]+):\s+(HORSE)? \(?(?PHold\'em|Razz|7 Card Stud) (?PNo Limit|Limit|Pot Limit),? \(?(?P\$|)?(?P[.0-9]+)/\$?(?P[.0-9]+)\) - (?P.*$)', re.MULTILINE) + re_GameInfo = re.compile('PokerStars Game #(?P[0-9]+):\s+(HORSE)? \(?(?PHold\'em|Razz|7 Card Stud|Omaha Hi/Lo) (?PNo Limit|Limit|Pot Limit),? \(?(?P\$|)?(?P[.0-9]+)/\$?(?P[.0-9]+)\) - (?P.*$)', re.MULTILINE) re_SplitHands = re.compile('\n\n+') re_HandInfo = re.compile("^Table \'(?P[- a-zA-Z]+)\'(?P.+?$)?", re.MULTILINE) re_Button = re.compile('Seat #(?P