7784 "IndexError: list index out of range" on [initial CLI "gramps -t"]
This commit is contained in:
parent
2d4e36a074
commit
97a1419281
@ -421,6 +421,8 @@ class ArgHandler(object):
|
|||||||
if self.list_table:
|
if self.list_table:
|
||||||
print _('Gramps Family Trees:').encode(sys.getfilesystemencoding())
|
print _('Gramps Family Trees:').encode(sys.getfilesystemencoding())
|
||||||
summary_list = self.dbman.family_tree_summary()
|
summary_list = self.dbman.family_tree_summary()
|
||||||
|
if not summary_list:
|
||||||
|
sys.exit(0)
|
||||||
print _("Family Tree").encode(sys.getfilesystemencoding()),
|
print _("Family Tree").encode(sys.getfilesystemencoding()),
|
||||||
for key in sorted(summary_list[0]):
|
for key in sorted(summary_list[0]):
|
||||||
if key != _("Family tree"):
|
if key != _("Family tree"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user