From dd17155aa92df8dc486cc4545938a43ada2e31d5 Mon Sep 17 00:00:00 2001 From: grindi Date: Wed, 12 Aug 2009 12:47:18 +0400 Subject: [PATCH] Fixed bug 7 ( http://trac-git.assembla.com/free_poker_tools/ticket/7 ) --- pyfpdb/FulltiltToFpdb.py | 2 +- pyfpdb/HandHistoryConverter.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/FulltiltToFpdb.py b/pyfpdb/FulltiltToFpdb.py index 19a666f1..1fd251ca 100755 --- a/pyfpdb/FulltiltToFpdb.py +++ b/pyfpdb/FulltiltToFpdb.py @@ -150,7 +150,7 @@ class Fulltilt(HandHistoryConverter): self.obs = self.obs.replace('\r\n', '\n') if self.obs == "" or self.obs == None: logging.info("Read no hands.") - return + return [] return re.split(self.re_SplitHands, self.obs) def readHandInfo(self, hand): diff --git a/pyfpdb/HandHistoryConverter.py b/pyfpdb/HandHistoryConverter.py index c16e9696..343cb82f 100644 --- a/pyfpdb/HandHistoryConverter.py +++ b/pyfpdb/HandHistoryConverter.py @@ -211,7 +211,7 @@ which it expects to find at self.re_TailSplitHands -- see for e.g. Everleaf.py. self.obs = self.obs.replace('\r\n', '\n') if self.obs == "" or self.obs == None: log.info("Read no hands.") - return + return [] return re.split(self.re_SplitHands, self.obs) def processHand(self, handText):