Party: Add exception for when determineGameType fails

This commit is contained in:
Worros 2010-09-06 16:44:08 +08:00
parent c6d4661740
commit 581b58e0c7

View File

@ -199,6 +199,10 @@ class PartyPoker(HandHistoryConverter):
m = self._getGameType(handText) m = self._getGameType(handText)
m_20BBmin = self.re_20BBmin.search(handText) m_20BBmin = self.re_20BBmin.search(handText)
if m is None: 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 return None
mg = m.groupdict() mg = m.groupdict()