From 14cf64f81b54023f6ded11c92e990aad57aca24f Mon Sep 17 00:00:00 2001 From: eblade Date: Thu, 19 Feb 2009 16:56:37 -0500 Subject: [PATCH] HHC will return without generating python errors if given an empty input, commented out echoing the input --- pyfpdb/HandHistoryConverter.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyfpdb/HandHistoryConverter.py b/pyfpdb/HandHistoryConverter.py index 9b22f42b..a92163ab 100644 --- a/pyfpdb/HandHistoryConverter.py +++ b/pyfpdb/HandHistoryConverter.py @@ -110,11 +110,14 @@ class HandHistoryConverter: print "Cowardly refusing to continue after failed sanity check" return self.readFile(self.file) + if self.obs == "" or self.obs == None: + print "Did not read anything from file." + return outfile = open(self.ofile, 'w') self.gametype = self.determineGameType() self.hands = self.splitFileIntoHands() for hand in self.hands: - print "\nInput:\n"+hand.string +# print "\nInput:\n"+hand.string self.readHandInfo(hand) self.readPlayerStacks(hand) print "DEBUG stacks:", hand.stacks