From 9e98aa0c25fedf93f3d1e5e7aacbf9be29abea20 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sat, 16 Mar 2013 22:50:05 +0000 Subject: [PATCH] ignore any CLI book report "item" which crashes svn: r21667 --- src/plugins/BookReport.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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())