From c417577b9cf19e00f92d583f3c82ff95c9e54efe Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 30 May 2019 00:02:54 +0200 Subject: Error reporting improved --- dealconvert/formats/bhg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dealconvert/formats/bhg.py') diff --git a/dealconvert/formats/bhg.py b/dealconvert/formats/bhg.py index 23a1673..08b9213 100644 --- a/dealconvert/formats/bhg.py +++ b/dealconvert/formats/bhg.py @@ -51,7 +51,7 @@ class BHGFormat(DealFormat): line += chr((65 if card < 26 else 71)+card) except ValueError: raise RuntimeError( - 'invalid suit %s in board #%d' % ( + 'invalid suit %s in board %d' % ( ''.join(suit), deal.number)) lines[deal.number] = line out_file.write('\r\n'.join(lines)) -- cgit v1.2.3