fnp
/
librarian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cc0a99f
)
minor fix in error reporting
author
Jan Szejko
<j-sz@o2.pl>
Thu, 21 Jan 2016 13:20:08 +0000
(14:20 +0100)
committer
Jan Szejko
<j-sz@o2.pl>
Thu, 21 Jan 2016 13:20:08 +0000
(14:20 +0100)
librarian/dcparser.py
patch
|
blob
|
history
diff --git
a/librarian/dcparser.py
b/librarian/dcparser.py
index
fd3eec5
..
2c12b4e
100644
(file)
--- a/
librarian/dcparser.py
+++ b/
librarian/dcparser.py
@@
-40,7
+40,7
@@
class Person(object):
surname = parts[0]
names = []
elif len(parts) != 2:
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:
else:
surname = parts[0]
if len(parts[1]) == 0: