summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörn Hees <joernhees@users.noreply.github.com>2016-07-27 02:54:35 +0200
committerGitHub <noreply@github.com>2016-07-27 02:54:35 +0200
commitb80b4ee8e0007017f9620e47af07a1f5535a1f95 (patch)
tree43b552fc5a2f6966980021ed161138fc564ece00
parent8f5da1bc7bcb5ae204706b0bf8d19707eb06beb1 (diff)
parentfd27a6ad53aadef80fca9c081103c593c016979d (diff)
downloadrdflib-b80b4ee8e0007017f9620e47af07a1f5535a1f95.tar.gz
Merge pull request #643 from joernhees/fix_ntriples_exception
Fix ntriples exception, closes #640
-rw-r--r--rdflib/plugins/parsers/ntriples.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rdflib/plugins/parsers/ntriples.py b/rdflib/plugins/parsers/ntriples.py
index 7c8530e5..9283b822 100644
--- a/rdflib/plugins/parsers/ntriples.py
+++ b/rdflib/plugins/parsers/ntriples.py
@@ -207,7 +207,7 @@ class NTriplesParser(object):
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