ignore any CLI book report "item" which crashes

svn: r21667
This commit is contained in:
Paul Franklin 2013-03-16 22:50:05 +00:00
parent 198a707f5b
commit 9e98aa0c25

View File

@ -1310,8 +1310,9 @@ def cl_report(database, name, category, options_str_dict):
report_class = item.get_write_item()
obj = write_book_item(database,
report_class, item.option_class, user)
append_styles(selected_style, item)
rptlist.append(obj)
if obj:
append_styles(selected_style, item)
rptlist.append(obj)
doc.set_style_sheet(selected_style)
doc.open(clr.option_class.get_output())