diff --git a/bin/report/report_sxw.py b/bin/report/report_sxw.py index a4fe32a94a0..cc39269b44b 100644 --- a/bin/report/report_sxw.py +++ b/bin/report/report_sxw.py @@ -305,7 +305,7 @@ class rml_parse(object): head_dom = etree.XML(rml_head) for tag in head_dom.getchildren(): found = rml_dom.find('.//'+tag.tag) - if found and len(found): + if found is not None and len(found): if tag.get('position'): found.append(tag) else :