From c3cfacbfd878f8a26750f22f701f4ac23fa98163 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Thu, 21 Jan 2016 14:20:08 +0100 Subject: [PATCH] minor fix in error reporting --- librarian/dcparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.20.1