diff --git a/pyfpdb/AbsoluteToFpdb.py b/pyfpdb/AbsoluteToFpdb.py index ca38b84b..1d753284 100755 --- a/pyfpdb/AbsoluteToFpdb.py +++ b/pyfpdb/AbsoluteToFpdb.py @@ -201,12 +201,12 @@ class Absolute(HandHistoryConverter): if m is None or fname_info is None: if m is None: tmp = hand.handText[0:100] - logging.error(_("readHandInfo: Didn't match: '%s'") % tmp) - raise FpdbParseError(_("Absolute: Didn't match re_HandInfo: '%s'") % tmp) + logging.error(_("Didn't match re_HandInfo: '%s'") % tmp) + raise FpdbParseError("Absolute: " + _("Didn't match re_HandInfo: '%s'") % tmp) elif fname_info is None: logging.error(_("readHandInfo: File name didn't match re_*InfoFromFilename")) logging.error(_("File name: %s") % self.in_path) - raise FpdbParseError(_("Absolute: Didn't match re_*InfoFromFilename: '%s'") % self.in_path) + raise FpdbParseError("Absolute: " + _("Didn't match re_*InfoFromFilename: '%s'") % self.in_path) logging.debug("HID %s, Table %s" % (m.group('HID'), m.group('TABLE'))) hand.handid = m.group('HID')