From a713d5c388ea0ff153449375f443ffc8e0ee7a24 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sat, 16 Mar 2013 22:50:21 +0000 Subject: [PATCH] ignore any CLI book report "item" which crashes svn: r21668 --- gramps/cli/plug/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gramps/cli/plug/__init__.py b/gramps/cli/plug/__init__.py index 7588c9b04..f9a844385 100644 --- a/gramps/cli/plug/__init__.py +++ b/gramps/cli/plug/__init__.py @@ -743,8 +743,9 @@ def cl_book(database, name, book, 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())