7784 "IndexError: list index out of range" on [initial CLI "gramps -t"]

This commit is contained in:
Paul Franklin 2014-06-05 08:01:57 -07:00
parent 6bf8a734cf
commit fa338e85a4

View File

@ -417,6 +417,8 @@ class ArgHandler(object):
if self.list_table: if self.list_table:
print(_('Gramps Family Trees:')) print(_('Gramps Family Trees:'))
summary_list = self.dbman.family_tree_summary() summary_list = self.dbman.family_tree_summary()
if not summary_list:
sys.exit(0)
print(_("Family Tree"), end="") print(_("Family Tree"), end="")
for key in sorted(summary_list[0]): for key in sorted(summary_list[0]):
if key != "Family Tree": if key != "Family Tree":