X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/ea995d6aea1cc1b19502825fec5f5d0445d632c4..a36b71e91ec260eae71f133f450fe4de80974461:/librarian/pyhtml.py?ds=sidebyside diff --git a/librarian/pyhtml.py b/librarian/pyhtml.py index 775def1..68ae384 100644 --- a/librarian/pyhtml.py +++ b/librarian/pyhtml.py @@ -82,7 +82,10 @@ class EduModule(Xmill): } submill = EduModule(dict(self.options.items() + {'sub_gen': True}.items())) - opis = submill.generate(element.xpath('opis')[0]) if len(element.xpath('opis')) else "" + if element.xpath('opis'): + opis = submill.generate(element.xpath('opis')[0]) + else: + opis = '' n = element.xpath('wskazowki') if n: wskazowki = submill.generate(n[0]) @@ -196,7 +199,7 @@ u"""%(wskazowki)s subgen = EduModule(self.options) definiens_s = subgen.generate(definiens) else: - pass # print '!! Missing definiendum in source:', element.text + print '!! Missing definiendum in source:', element.text return u"