From c80bb3ac3f9d42fb7d59e1faf8a26b3e1ab538b3 Mon Sep 17 00:00:00 2001 From: Worros Date: Tue, 1 Sep 2009 18:35:40 +0800 Subject: [PATCH 1/2] sys.exit() in Hand.addShownCards() has to be wrong --- pyfpdb/Hand.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pyfpdb/Hand.py b/pyfpdb/Hand.py index cf5f3317..ea65c071 100644 --- a/pyfpdb/Hand.py +++ b/pyfpdb/Hand.py @@ -472,7 +472,6 @@ Add a raise on [street] by [player] to [amountTo] For when a player shows cards for any reason (for showdown or out of choice). Card ranks will be uppercased """ - import sys; sys.exit(1) log.debug("addShownCards %s hole=%s all=%s" % (player, cards, holeandboard)) if cards is not None: self.addHoleCards(cards,player,shown, mucked) From b4ccc7f45ce9abcfcaf1350f3179c9af303495c1 Mon Sep 17 00:00:00 2001 From: Worros Date: Thu, 3 Sep 2009 11:29:30 +0800 Subject: [PATCH 2/2] Add guards around numpy in GuiSessionViewer for windows users --- pyfpdb/GuiSessionViewer.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyfpdb/GuiSessionViewer.py b/pyfpdb/GuiSessionViewer.py index e670bf73..0587e5e0 100644 --- a/pyfpdb/GuiSessionViewer.py +++ b/pyfpdb/GuiSessionViewer.py @@ -21,7 +21,11 @@ pygtk.require('2.0') import gtk import os from time import time, strftime, localtime -from numpy import diff, nonzero +try: + from numpy import diff, nonzero +except: + print """Failed to load numpy in Session Viewer""" + print """This is of no consequence as the module currently doesn't do anything.""" import Card import fpdb_import