Skip to content

Commit

Permalink
Put the original pattern in the ParseError for ntriples.eat()
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Clark-Casey committed Jul 26, 2016
1 parent e41617b commit f06ee53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdflib/plugins/parsers/ntriples.py
Expand Up @@ -207,7 +207,7 @@ def eat(self, pattern):
if not m: # @@ Why can't we get the original pattern?
# print(dir(pattern))
# print repr(self.line), type(self.line)
raise ParseError("Failed to eat %s at %s" % (pattern, self.line))
raise ParseError("Failed to eat %s at %s" % (pattern.pattern, self.line))
self.line = self.line[m.end():]
return m

Expand Down

0 comments on commit f06ee53

Please sign in to comment.