improve error reporting in Hand.checkPlayerExists
This commit is contained in:
parent
e0a2c4e0b4
commit
b41e385979
|
@ -320,10 +320,8 @@ If a player has None chips he won't be added."""
|
||||||
|
|
||||||
def checkPlayerExists(self,player):
|
def checkPlayerExists(self,player):
|
||||||
if player not in [p[1] for p in self.players]:
|
if player not in [p[1] for p in self.players]:
|
||||||
print _("DEBUG: checkPlayerExists %s fail") % player
|
print (_("DEBUG: checkPlayerExists %s fail on hand number %s") % (player, self.handid))
|
||||||
raise FpdbParseError(_("checkPlayerExists: '%s' failed.") % player)
|
raise FpdbParseError(_("checkPlayerExists: '%s fail on hand number %s") % (player, self.handid))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def setCommunityCards(self, street, cards):
|
def setCommunityCards(self, street, cards):
|
||||||
log.debug("setCommunityCards %s %s" %(street, cards))
|
log.debug("setCommunityCards %s %s" %(street, cards))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user