X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/753d3a2d605279607ab18018a227b17dd7cb94b3..121ab507bfffe249087df81a6dcdc368d9cb11f5:/src/librarian/parser.py?ds=sidebyside diff --git a/src/librarian/parser.py b/src/librarian/parser.py index c00785a..5e2fb08 100644 --- a/src/librarian/parser.py +++ b/src/librarian/parser.py @@ -30,7 +30,10 @@ class WLElementLookup(etree.CustomElementClassLookup): return if namespace: return - return WL_ELEMENTS[name] + try: + return WL_ELEMENTS[name] + except KeyError: + return parser = etree.XMLParser()