X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/4e329824f40367945de11d3647396859092f5c2c..1f8cf8e0244045ed2b2a8efcff5d6db967ac2b11:/librarian/parser.py diff --git a/librarian/parser.py b/librarian/parser.py index 73ddd52..efe6e95 100644 --- a/librarian/parser.py +++ b/librarian/parser.py @@ -39,7 +39,7 @@ class WLDocument(object): self.rdf_elem = root_elem.find(dc_path) if self.rdf_elem is None: - raise NoDublinCore('Document has no DublinCore - which is required.') + raise NoDublinCore("Document must have a '%s' element." % RDFNS('RDF')) self.book_info = dcparser.BookInfo.from_element( self.rdf_elem, fallbacks=meta_fallbacks, strict=strict)