From eb14abbf3e642a52143086816c7991d42cc3001c Mon Sep 17 00:00:00 2001 From: prculley Date: Mon, 16 Mar 2020 11:19:09 -0500 Subject: [PATCH] Fix Genealogy Tree reports for crash in CLI Fixes #11621 --- gramps/cli/plug/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/cli/plug/__init__.py b/gramps/cli/plug/__init__.py index b1c1d37b1..eb4fa8afe 100644 --- a/gramps/cli/plug/__init__.py +++ b/gramps/cli/plug/__init__.py @@ -519,8 +519,8 @@ class CommandLineReport: self.format = tree_format["class"] if self.format is None: # Pick the first one as the default. - self.format = tree_format.FORMATS[0]["class"] - _chosen_format = tree_format.FORMATS[0]["type"] + self.format = treedoc.FORMATS[0]["class"] + _chosen_format = treedoc.FORMATS[0]["type"] else: self.format = None if _chosen_format and _format_str: