HHC: Correct error count for unmatched gametype regex
This commit is contained in:
@@ -272,8 +272,8 @@ which it expects to find at self.re_TailSplitHands -- see for e.g. Everleaf.py.
|
|||||||
l = None
|
l = None
|
||||||
if gametype is None:
|
if gametype is None:
|
||||||
gametype = "unmatched"
|
gametype = "unmatched"
|
||||||
# TODO: not ideal, just trying to not error.
|
# TODO: not ideal, just trying to not error. Throw ParseException?
|
||||||
# TODO: Need to count failed hands.
|
self.numErrors += 1
|
||||||
else:
|
else:
|
||||||
# See if gametype is supported.
|
# See if gametype is supported.
|
||||||
type = gametype['type']
|
type = gametype['type']
|
||||||
|
|||||||
Reference in New Issue
Block a user