Fix error where displaying Date or Confidence in Citation Tree View gave AttributeError: 'NoneType' object has no attribute 'encode'
svn: r23062
This commit is contained in:
parent
1076baad72
commit
b26ce84857
@ -976,7 +976,7 @@ class TreeBaseModel(GObject.GObject, Gtk.TreeModel):
|
|||||||
if not secondary:
|
if not secondary:
|
||||||
# None is used to indicate this column has no data
|
# None is used to indicate this column has no data
|
||||||
if self.fmap[col] is None:
|
if self.fmap[col] is None:
|
||||||
return None
|
return ''
|
||||||
value = self.fmap[col](data)
|
value = self.fmap[col](data)
|
||||||
else:
|
else:
|
||||||
if self.fmap2[col] is None:
|
if self.fmap2[col] is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user