diff --git a/src/plugins/BookReport.py b/src/plugins/BookReport.py index 9a7e48f17..3d56da0c6 100644 --- a/src/plugins/BookReport.py +++ b/src/plugins/BookReport.py @@ -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())