Commit b98a3020 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Ignore an error, if the report section list is empty

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9002 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c4b8d65f
......@@ -1594,6 +1594,8 @@ class ListBoxRenderer:
# Make a list of lines.
line_class = self.getLineClass()
line_list = []
try:
section_index = 0
current_section_base_index = 0
current_section = report_section_list[0]
......@@ -1620,6 +1622,9 @@ class ListBoxRenderer:
domain_selection = current_section.domain_selection,
depth = current_section.depth)
line_list.append(line)
except IndexError:
# If the report section list is empty, nothing to do.
pass
return line_list
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment