X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/25e29292e9cfecc260478aa9b094b8d37ff98eb5..877639d2f061295739bd15615c3f69d69c758d8e:/src/librarian/parser.py diff --git a/src/librarian/parser.py b/src/librarian/parser.py index ca9691a..1f18dbd 100644 --- a/src/librarian/parser.py +++ b/src/librarian/parser.py @@ -209,7 +209,7 @@ class WLDocument: for s in self.edoc.findall('//slowo_obce'): if not s.text and len(s) == 1 and s[0].tag == 'slowo_obce': continue - if re.match(r'^[\s\u0590-\u05ff]+$', s.text): + if re.match(r'^[\s\u0590-\u05ff]+$', s.text or ''): s.attrib['protect'] = 'true' def editors(self):