From b41e385979863a687f3eaff6acec303207ec64d2 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Mon, 23 Aug 2010 02:16:44 +0200 Subject: [PATCH] improve error reporting in Hand.checkPlayerExists --- pyfpdb/Hand.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pyfpdb/Hand.py b/pyfpdb/Hand.py index c32f9f37..aa048ae4 100644 --- a/pyfpdb/Hand.py +++ b/pyfpdb/Hand.py @@ -320,10 +320,8 @@ If a player has None chips he won't be added.""" def checkPlayerExists(self,player): if player not in [p[1] for p in self.players]: - print _("DEBUG: checkPlayerExists %s fail") % player - raise FpdbParseError(_("checkPlayerExists: '%s' failed.") % player) - - + print (_("DEBUG: checkPlayerExists %s fail on hand number %s") % (player, self.handid)) + raise FpdbParseError(_("checkPlayerExists: '%s fail on hand number %s") % (player, self.handid)) def setCommunityCards(self, street, cards): log.debug("setCommunityCards %s %s" %(street, cards))