if dont have site and BB in lookupLimit table, just halve them for

sb,bb. Should work for higher limits almost always anyway, and there are
a finite number of ulimits which we should already have in the table
This commit is contained in:
Matt Turnbull 2009-03-11 14:33:07 +00:00
parent 904c108813
commit cfbf57dd1b

View File

@ -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__):