From 2f3d912ff881e991e4689f1036e23cb6664eb43e Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 23 May 2022 12:02:26 +0200 Subject: [PATCH 1/1] fix --- CHANGELOG.md | 8 +++++++- setup.py | 2 +- src/librarian/dcparser.py | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) 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): -- 2.20.1