X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/4e329824f40367945de11d3647396859092f5c2c..ca03d8c1842d2ebac821c5d6cb6adee3701fe175:/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)