unify a string
This commit is contained in:
parent
5a0f2946a4
commit
4c71fd7baf
|
@ -136,7 +136,7 @@ class Absolute(HandHistoryConverter):
|
||||||
m = self.re_GameInfo.search(handText)
|
m = self.re_GameInfo.search(handText)
|
||||||
if not m:
|
if not m:
|
||||||
tmp = handText[0:100]
|
tmp = handText[0:100]
|
||||||
log.error(_("determineGameType: Unable to recognise gametype from: '%s'") % tmp)
|
log.error(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
log.error(_("determineGameType: Raising FpdbParseError"))
|
log.error(_("determineGameType: Raising FpdbParseError"))
|
||||||
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@ class Betfair(HandHistoryConverter):
|
||||||
m = self.re_GameInfo.search(handText)
|
m = self.re_GameInfo.search(handText)
|
||||||
if not m:
|
if not m:
|
||||||
tmp = handText[0:100]
|
tmp = handText[0:100]
|
||||||
log.error(_("determineGameType: Unable to recognise gametype from: '%s'") % tmp)
|
log.error(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
log.error(_("determineGameType: Raising FpdbParseError"))
|
log.error(_("determineGameType: Raising FpdbParseError"))
|
||||||
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
|
|
||||||
|
|
|
@ -127,7 +127,7 @@ or None if we fail to get the info """
|
||||||
return self.info
|
return self.info
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
tmp = handText[0:100]
|
tmp = handText[0:100]
|
||||||
log.error(_("determineGameType: Unable to recognise gametype from: '%s'") % tmp)
|
log.error(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
log.error(_("determineGameType: Raising FpdbParseError"))
|
log.error(_("determineGameType: Raising FpdbParseError"))
|
||||||
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ class Everest(HandHistoryConverter):
|
||||||
return self.info
|
return self.info
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
tmp = handText[0:100]
|
tmp = handText[0:100]
|
||||||
log.error(_("determineGameType: Unable to recognise gametype from: '%s'") % tmp)
|
log.error(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
log.error(_("determineGameType: Raising FpdbParseError"))
|
log.error(_("determineGameType: Raising FpdbParseError"))
|
||||||
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
|
|
||||||
|
|
|
@ -107,7 +107,7 @@ or None if we fail to get the info """
|
||||||
m = self.re_GameInfo.search(handText)
|
m = self.re_GameInfo.search(handText)
|
||||||
if not m:
|
if not m:
|
||||||
tmp = handText[0:100]
|
tmp = handText[0:100]
|
||||||
log.error(_("determineGameType: Unable to recognise gametype from: '%s'") % tmp)
|
log.error(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
log.error(_("determineGameType: Raising FpdbParseError"))
|
log.error(_("determineGameType: Raising FpdbParseError"))
|
||||||
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
|
|
||||||
|
|
|
@ -208,8 +208,8 @@ class Fulltilt(HandHistoryConverter):
|
||||||
m = self.re_GameInfo.search(handText)
|
m = self.re_GameInfo.search(handText)
|
||||||
if not m:
|
if not m:
|
||||||
tmp = handText[0:100]
|
tmp = handText[0:100]
|
||||||
|
log.error(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
log.error(_("determineGameType: Raising FpdbParseError for file '%s'") % self.in_path)
|
log.error(_("determineGameType: Raising FpdbParseError for file '%s'") % self.in_path)
|
||||||
log.error(_("determineGameType: Unable to recognise gametype from: '%s'") % tmp)
|
|
||||||
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
mg = m.groupdict()
|
mg = m.groupdict()
|
||||||
|
|
||||||
|
|
|
@ -156,7 +156,7 @@ class OnGame(HandHistoryConverter):
|
||||||
m = self.re_HandInfo.search(handText)
|
m = self.re_HandInfo.search(handText)
|
||||||
if not m:
|
if not m:
|
||||||
tmp = handText[0:100]
|
tmp = handText[0:100]
|
||||||
log.error(_("determineGameType: Unable to recognise gametype from: '%s'") % tmp)
|
log.error(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
log.error(_("determineGameType: Raising FpdbParseError"))
|
log.error(_("determineGameType: Raising FpdbParseError"))
|
||||||
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
|
|
||||||
|
|
|
@ -194,7 +194,7 @@ class PartyPoker(HandHistoryConverter):
|
||||||
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]
|
tmp = handText[0:100]
|
||||||
log.error(_("determineGameType: Unable to recognise gametype from: '%s'") % tmp)
|
log.error(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
log.error(_("determineGameType: Raising FpdbParseError"))
|
log.error(_("determineGameType: Raising FpdbParseError"))
|
||||||
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
return None
|
return None
|
||||||
|
|
|
@ -125,7 +125,7 @@ class Pkr(HandHistoryConverter):
|
||||||
m = self.re_GameInfo.search(handText)
|
m = self.re_GameInfo.search(handText)
|
||||||
if not m:
|
if not m:
|
||||||
tmp = handText[0:100]
|
tmp = handText[0:100]
|
||||||
log.error(_("determineGameType: Unable to recognise gametype from: '%s'") % tmp)
|
log.error(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
log.error(_("determineGameType: Raising FpdbParseError"))
|
log.error(_("determineGameType: Raising FpdbParseError"))
|
||||||
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
|
|
||||||
|
|
|
@ -182,7 +182,7 @@ class PokerStars(HandHistoryConverter):
|
||||||
m = self.re_GameInfo.search(handText)
|
m = self.re_GameInfo.search(handText)
|
||||||
if not m:
|
if not m:
|
||||||
tmp = handText[0:100]
|
tmp = handText[0:100]
|
||||||
log.error(_("determineGameType: Unable to recognise gametype from: '%s'") % tmp)
|
log.error(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
log.error(_("determineGameType: Raising FpdbParseError"))
|
log.error(_("determineGameType: Raising FpdbParseError"))
|
||||||
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
|
|
||||||
|
|
|
@ -92,7 +92,7 @@ class Win2day(HandHistoryConverter):
|
||||||
m = self.re_GameInfo.search(handText)
|
m = self.re_GameInfo.search(handText)
|
||||||
if not m:
|
if not m:
|
||||||
tmp = handText[0:100]
|
tmp = handText[0:100]
|
||||||
log.error(_("determineGameType: Unable to recognise gametype from: '%s'") % tmp)
|
log.error(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
log.error(_("determineGameType: Raising FpdbParseError"))
|
log.error(_("determineGameType: Raising FpdbParseError"))
|
||||||
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
|
|
||||||
|
|
|
@ -169,7 +169,7 @@ class Winamax(HandHistoryConverter):
|
||||||
m = self.re_HandInfo.search(handText)
|
m = self.re_HandInfo.search(handText)
|
||||||
if not m:
|
if not m:
|
||||||
tmp = handText[0:100]
|
tmp = handText[0:100]
|
||||||
log.error(_("determineGameType: Unable to recognise gametype from: '%s'") % tmp)
|
log.error(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
log.error(_("determineGameType: Raising FpdbParseError"))
|
log.error(_("determineGameType: Raising FpdbParseError"))
|
||||||
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
|
|
||||||
|
|
|
@ -119,7 +119,7 @@ or None if we fail to get the info """
|
||||||
return self.info
|
return self.info
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
tmp = handText[0:100]
|
tmp = handText[0:100]
|
||||||
log.error(_("determineGameType: Unable to recognise gametype from: '%s'") % tmp)
|
log.error(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
log.error(_("determineGameType: Raising FpdbParseError"))
|
log.error(_("determineGameType: Raising FpdbParseError"))
|
||||||
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user