From b26ce848572d39b6ce6f6a5aef84178b77d2906c Mon Sep 17 00:00:00 2001 From: Tim G L Lyons Date: Mon, 9 Sep 2013 11:27:53 +0000 Subject: [PATCH] Fix error where displaying Date or Confidence in Citation Tree View gave AttributeError: 'NoneType' object has no attribute 'encode' svn: r23062 --- gramps/gui/views/treemodels/treebasemodel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gui/views/treemodels/treebasemodel.py b/gramps/gui/views/treemodels/treebasemodel.py index 2d68d1859..5739f4f1d 100644 --- a/gramps/gui/views/treemodels/treebasemodel.py +++ b/gramps/gui/views/treemodels/treebasemodel.py @@ -976,7 +976,7 @@ class TreeBaseModel(GObject.GObject, Gtk.TreeModel): if not secondary: # None is used to indicate this column has no data if self.fmap[col] is None: - return None + return '' value = self.fmap[col](data) else: if self.fmap2[col] is None: