Skip to content

Commit f8a4363

Browse files
committed
Fix string formatting
1 parent 725193b commit f8a4363

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cfonb/parser/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ def parse(self, line):
9494
if line[-1] == "\n":
9595
line = line[:-1]
9696
if len(line) != self.size:
97-
raise ParsingError("Invalid line: %s. the len should be %s"
98-
"instead of %s"%self.size, len(line))
97+
raise ParsingError("Invalid line: >%s<. the len should be %s"
98+
"instead of %s" % (line, self.size, len(line)))
9999
match = self.re.match(line)
100100
# re check
101101
if match is None:

0 commit comments

Comments
 (0)