fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes
[librarian.git]
/
src
/
librarian
/
parser.py
diff --git
a/src/librarian/parser.py
b/src/librarian/parser.py
index
c00785a
..
bea67b1
100644
(file)
--- a/
src/librarian/parser.py
+++ b/
src/librarian/parser.py
@@
-30,7
+30,10
@@
class WLElementLookup(etree.CustomElementClassLookup):
return
if namespace:
return
return
if namespace:
return
- return WL_ELEMENTS[name]
+ try:
+ return WL_ELEMENTS[name]
+ except KeyError:
+ return
parser = etree.XMLParser()
parser = etree.XMLParser()
@@
-178,7
+181,7
@@
class WLDocument(object):
for part_uri in self.book_info.parts:
try:
yield self.from_file(
for part_uri in self.book_info.parts:
try:
yield self.from_file(
- self.provider.by_
uri(part_uri
), provider=self.provider
+ self.provider.by_
slug(part_uri.slug
), provider=self.provider
)
except Exception as e:
if pass_part_errors:
)
except Exception as e:
if pass_part_errors: