Fix Genealogy Tree reports for crash in CLI

Fixes #11621
This commit is contained in:
prculley 2020-03-16 11:19:09 -05:00 committed by Paul Culley
parent 5154d0c016
commit eb14abbf3e

View File

@ -519,8 +519,8 @@ class CommandLineReport:
self.format = tree_format["class"] self.format = tree_format["class"]
if self.format is None: if self.format is None:
# Pick the first one as the default. # Pick the first one as the default.
self.format = tree_format.FORMATS[0]["class"] self.format = treedoc.FORMATS[0]["class"]
_chosen_format = tree_format.FORMATS[0]["type"] _chosen_format = treedoc.FORMATS[0]["type"]
else: else:
self.format = None self.format = None
if _chosen_format and _format_str: if _chosen_format and _format_str: