Parcourir la source

[trac547] removed unnecessary assertion to check number of list because there can be empty list in future

Naoki Kambe il y a 14 ans
Parent
commit
af9f4f7fda
1 fichiers modifiés avec 0 ajouts et 1 suppressions
  1. 0 1
      src/bin/stats/stats_httpd.py.in

+ 0 - 1
src/bin/stats/stats_httpd.py.in

@@ -435,7 +435,6 @@ class StatsHttpd:
             elem.text = v
             xml_list.append(
                 xml.etree.ElementTree.tostring(elem))
-        assert len(xml_list) > 0
         xml_string = "".join(xml_list)
         self.xml_body = self.open_template(XML_TEMPLATE_LOCATION).substitute(
             xml_string=xml_string,