badHangs -> badHands
This commit is contained in:
parent
d6529ab42f
commit
f431a63070
|
@ -96,14 +96,14 @@ Otherwise, finish at eof.
|
||||||
else:
|
else:
|
||||||
handsList = self.allHandsAsList()
|
handsList = self.allHandsAsList()
|
||||||
logging.info("Parsing %d hands" % len(handsList))
|
logging.info("Parsing %d hands" % len(handsList))
|
||||||
nBadHangs = 0
|
nBadHands = 0
|
||||||
for handText in handsList:
|
for handText in handsList:
|
||||||
try:
|
try:
|
||||||
self.processedHands.append(self.processHand(handText))
|
self.processedHands.append(self.processHand(handText))
|
||||||
except Exception, e: # TODO: it's better to replace it with s-t like HhcEception
|
except Exception, e: # TODO: it's better to replace it with s-t like HhcEception
|
||||||
nBadHangs += 1
|
nBadHands += 1
|
||||||
logging.error("Caught exception while parsing hand: %s" % str(e))
|
logging.error("Caught exception while parsing hand: %s" % str(e))
|
||||||
numHands = len(handsList) - nBadHangs
|
numHands = len(handsList) - nBadHands
|
||||||
endtime = time.time()
|
endtime = time.time()
|
||||||
print "read %d hands in %.3f seconds" % (numHands, endtime - starttime)
|
print "read %d hands in %.3f seconds" % (numHands, endtime - starttime)
|
||||||
if self.out_fh != sys.stdout:
|
if self.out_fh != sys.stdout:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user