Skip to content

Commit

Permalink
FIX winamax: when a hand is partial (hand.addStreets fails), Hand sho…
Browse files Browse the repository at this point in the history
…uld raise a FpdbPartial instead of writing a custom log.
  • Loading branch information
UgoM committed Mar 10, 2016
1 parent 13f3927 commit 31aaef9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pyfpdb/WinamaxToFpdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,7 @@ def markStreets(self, hand):
r"(\*\*\* TURN \*\*\* \[\S\S \S\S \S\S](?P<TURN>\[\S\S\].+(?=\*\*\* RIVER \*\*\*)|.+))?"
r"(\*\*\* RIVER \*\*\* \[\S\S \S\S \S\S \S\S](?P<RIVER>\[\S\S\].+))?", hand.handText,re.DOTALL)

try:
hand.addStreets(m)
# print "adding street", m.group(0)
# print "---"
except:
log.info(_("Failed to add streets. handtext=%s"))
hand.addStreets(m)

#Needs to return a list in the format
# ['player1name', 'player2name', ...] where player1name is the sb and player2name is bb,
Expand Down

0 comments on commit 31aaef9

Please sign in to comment.