From: Radek Czajka Date: Mon, 23 May 2022 10:02:26 +0000 (+0200) Subject: fix X-Git-Tag: 2.4.2 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/2f3d912ff881e991e4689f1036e23cb6664eb43e fix --- diff --git a/CHANGELOG.md b/CHANGELOG.md index 9dbf4af..bf0522f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,13 @@ This document records all notable changes to Librarian. -## 2.4.1 (22-05-12) +## 2.4.2 (2022-05-23) + +### Fixed +- Error reporting on metadata parse error. + + +## 2.4.1 (2022-05-12) ### Added - `category.legimi` metadata field diff --git a/setup.py b/setup.py index 637f20d..1ff1243 100755 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ def whole_tree(prefix, path): setup( name='librarian', - version='2.4.1', + version='2.4.2', description='Converter from WolneLektury.pl XML-based language to XHTML, TXT and other formats', author="Marek Stępniowski", author_email='marek@stepniowski.com', diff --git a/src/librarian/dcparser.py b/src/librarian/dcparser.py index 549142b..80c095f 100644 --- a/src/librarian/dcparser.py +++ b/src/librarian/dcparser.py @@ -212,7 +212,7 @@ class Field(object): except ValueError as e: raise ValidationError( "Field '%s' - invald value: %s" - % (self.uri, e.message) + % (self.uri, str(e)) ) def validate(self, fdict, fallbacks=None, strict=False, validate_required=True):