From 581b58e0c7476373823ee09a22b29b99b8232f80 Mon Sep 17 00:00:00 2001 From: Worros Date: Mon, 6 Sep 2010 16:44:08 +0800 Subject: [PATCH] Party: Add exception for when determineGameType fails --- pyfpdb/PartyPokerToFpdb.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyfpdb/PartyPokerToFpdb.py b/pyfpdb/PartyPokerToFpdb.py index f61b5b7b..ffb41678 100755 --- a/pyfpdb/PartyPokerToFpdb.py +++ b/pyfpdb/PartyPokerToFpdb.py @@ -199,6 +199,10 @@ class PartyPoker(HandHistoryConverter): m = self._getGameType(handText) m_20BBmin = self.re_20BBmin.search(handText) if m is None: + tmp = handText[0:100] + log.error(_("determineGameType: Unable to recognise gametype from: '%s'") % tmp) + log.error(_("determineGameType: Raising FpdbParseError")) + raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp) return None mg = m.groupdict()