9554: example.gramps map has different value, and should return correct type

This commit is contained in:
Doug Blank 2016-07-19 21:11:18 -04:00
parent 919f127aed
commit 894e74d127

View File

@ -967,8 +967,10 @@ class DbBsddbRead(DbReadBase, Callback):
else: else:
key = surname key = surname
name_group = self.name_group.get(key, surname) name_group = self.name_group.get(key, surname)
if name_group: if isinstance(name_group, bytes):
return name_group.decode("utf-8") return name_group.decode("utf-8")
else:
return name_group
def get_name_group_keys(self): def get_name_group_keys(self):
""" """