From b1387be3ce166d5c3a21d3ad73bd3bb26e69c50a Mon Sep 17 00:00:00 2001 From: Steffen Schaumburg Date: Sat, 19 Mar 2011 02:13:26 +0100 Subject: [PATCH] some string unifications --- pyfpdb/PacificPokerToFpdb.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyfpdb/PacificPokerToFpdb.py b/pyfpdb/PacificPokerToFpdb.py index 34fb2265..fc0661bb 100644 --- a/pyfpdb/PacificPokerToFpdb.py +++ b/pyfpdb/PacificPokerToFpdb.py @@ -170,7 +170,7 @@ class PacificPoker(HandHistoryConverter): m = self.re_GameInfo.search(handText) if not m: tmp = handText[0:120] - log.error(_("determineGameType: Unable to recognise gametype from: '%s'") % tmp) + log.error(_("Unable to recognise gametype from: '%s'") % tmp) log.error(_("determineGameType: Raising FpdbParseError")) raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp) @@ -201,7 +201,7 @@ class PacificPoker(HandHistoryConverter): info['sb'] = self.Lim_Blinds[mg['BB']][0] info['bb'] = self.Lim_Blinds[mg['BB']][1] except KeyError: - log.error(_("determineGameType: Lim_Blinds has no lookup for '%s'" % mg['BB'])) + log.error(_("Lim_Blinds has no lookup for '%s'") % mg['BB']) log.error(_("determineGameType: Raising FpdbParseError")) raise FpdbParseError(_("Lim_Blinds has no lookup for '%s'") % mg['BB']) @@ -212,8 +212,8 @@ class PacificPoker(HandHistoryConverter): m = self.re_HandInfo.search(hand.handText,re.DOTALL) m2 = self.re_GameInfo.search(hand.handText) if m is None or m2 is None: - log.error("Didn't match re_HandInfo") - raise FpdbParseError(_("No match in readHandInfo.")) + log.error(_("No match in readHandInfo: '%s'") % hand.handText[0:100]) + raise FpdbParseError(_("No match in readHandInfo: '%s'") % hand.handText[0:100]) info.update(m.groupdict()) info.update(m2.groupdict()) @@ -255,7 +255,7 @@ class PacificPoker(HandHistoryConverter): hand.buyinCurrency="PSFP" else: #FIXME: handle other currencies, FPP, play money - raise FpdbParseError(_("Failed to detect currency: '%s'" % info[key])) + raise FpdbParseError(_("Failed to detect currency. Hand ID: %s: '%s'") % (hand.handid, info[key])) info['BIAMT'] = info['BIAMT'].strip(u'$€FPP')