From: Jan Szejko Date: Thu, 21 Jan 2016 13:20:08 +0000 (+0100) Subject: minor fix in error reporting X-Git-Tag: 1.7~82 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/c3cfacbfd878f8a26750f22f701f4ac23fa98163?ds=sidebyside minor fix in error reporting --- diff --git a/librarian/dcparser.py b/librarian/dcparser.py index fd3eec5..2c12b4e 100644 --- a/librarian/dcparser.py +++ b/librarian/dcparser.py @@ -40,7 +40,7 @@ class Person(object): surname = parts[0] names = [] elif len(parts) != 2: - raise ValueError("Invalid person name. There should be at most one comma: \"%s\"." % text) + raise ValueError("Invalid person name. There should be at most one comma: \"%s\"." % text.encode('utf-8')) else: surname = parts[0] if len(parts[1]) == 0: