From 6661229b09fe4238291b0a753dc01ccb878bf092 Mon Sep 17 00:00:00 2001 From: Tim G L Lyons Date: Mon, 9 Sep 2013 11:32:59 +0000 Subject: [PATCH] Fix error where displaying Date or Confidence in Citation Tree View gave AttributeError: 'NoneType' object has no attribute 'encode' svn: r23063 --- 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: