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