From a6c2152be47bb39e79c45a7e82dec0698bdad117 Mon Sep 17 00:00:00 2001 From: Matt Turnbull Date: Sat, 20 Dec 2008 22:52:47 +0000 Subject: [PATCH] break less badly on a hand which I can't handle at the moment --- pyfpdb/Hand.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyfpdb/Hand.py b/pyfpdb/Hand.py index 09f52065..24ccbe3f 100644 --- a/pyfpdb/Hand.py +++ b/pyfpdb/Hand.py @@ -576,5 +576,7 @@ class Pot(object): elif len(self.pots) == 3: return "Total pot $%.2f Main pot $%.2f. Side pot-1 $%2.2f. Side pot-2 $%.2f." % (self.total, self.pots[0], self.pots[1], self.pots[2]) else: - return "too many pots.. fix me.", self.pots + return "maybe no pot.. or too many pots.. no small blind and walk in bb?." + # I don't know stars format for a walk in the bb when sb doesn't post. + # The thing to do here is raise a Hand error like fpdb import does and file it into errors.txt