From c5d5285e7e64e0b009cb9e22048748e1e47c2664 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Thu, 5 Jun 2014 08:04:07 -0700 Subject: [PATCH] 7784 "IndexError: list index out of range" on [initial CLI "gramps -t"] --- gramps/cli/arghandler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/cli/arghandler.py b/gramps/cli/arghandler.py index 9a80c6687..1f6730100 100644 --- a/gramps/cli/arghandler.py +++ b/gramps/cli/arghandler.py @@ -420,6 +420,8 @@ class ArgHandler(object): if self.list_table: print(_('Gramps Family Trees:')) summary_list = self.dbman.family_tree_summary() + if not summary_list: + sys.exit(0) print(_("Family Tree"), end="") for key in sorted(summary_list[0]): if key != "Family Tree":