From 393323a670df56259eb0b02ce68a565f62cc6f04 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Tue, 19 Mar 2013 18:34:44 +0000 Subject: [PATCH] [r21696]TreeBaseModel: Avoid TypeError when bisecting svn: r21700 --- gramps/gui/views/treemodels/treebasemodel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/gui/views/treemodels/treebasemodel.py b/gramps/gui/views/treemodels/treebasemodel.py index 71db3b19a..95d28a3f3 100644 --- a/gramps/gui/views/treemodels/treebasemodel.py +++ b/gramps/gui/views/treemodels/treebasemodel.py @@ -34,7 +34,6 @@ This module provides the model that is used for all hierarchical treeviews. # Standard python modules # #------------------------------------------------------------------------- - import time import locale import sys @@ -94,6 +93,8 @@ class Node(object): self.name = sortkey #sortkey must be localized sort, so self.sortkey = glocale.sort_key(sortkey) + if not self.sortkey: + self.sortkey = '' else: self.name = '' self.sortkey = ''