Make msgs about parse errors more verbose
+ fix small bug in FpdbParseError
This commit is contained in:
parent
9dd600702a
commit
dbaf4dbdbc
|
@ -9,8 +9,8 @@ class FpdbParseError(FpdbError):
|
||||||
self.value = value
|
self.value = value
|
||||||
self.hid = hid
|
self.hid = hid
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
if hid:
|
if self.hid:
|
||||||
return repr("HID:"+hid+", "+self.value)
|
return repr("HID:"+self.hid+", "+self.value)
|
||||||
else:
|
else:
|
||||||
return repr(self.value)
|
return repr(self.value)
|
||||||
|
|
||||||
|
|
|
@ -154,6 +154,7 @@ Otherwise, finish at EOF.
|
||||||
except FpdbParseError, e:
|
except FpdbParseError, e:
|
||||||
numErrors += 1
|
numErrors += 1
|
||||||
log.warning("Failed to convert hand %s" % e.hid)
|
log.warning("Failed to convert hand %s" % e.hid)
|
||||||
|
log.warning("Exception msg: '%s'" % str(e))
|
||||||
log.debug(handText)
|
log.debug(handText)
|
||||||
else:
|
else:
|
||||||
handsList = self.allHandsAsList()
|
handsList = self.allHandsAsList()
|
||||||
|
@ -168,6 +169,7 @@ Otherwise, finish at EOF.
|
||||||
except FpdbParseError, e:
|
except FpdbParseError, e:
|
||||||
numErrors += 1
|
numErrors += 1
|
||||||
log.warning("Failed to convert hand %s" % e.hid)
|
log.warning("Failed to convert hand %s" % e.hid)
|
||||||
|
log.warning("Exception msg: '%s'" % str(e))
|
||||||
log.debug(handText)
|
log.debug(handText)
|
||||||
numHands = len(handsList)
|
numHands = len(handsList)
|
||||||
endtime = time.time()
|
endtime = time.time()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user