From 894e74d1272f5c8a31a624ac18244a5463168eeb Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 19 Jul 2016 21:11:18 -0400 Subject: [PATCH] 9554: example.gramps map has different value, and should return correct type --- gramps/plugins/db/bsddb/read.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/db/bsddb/read.py b/gramps/plugins/db/bsddb/read.py index 75a4d93b5..6d53e8976 100644 --- a/gramps/plugins/db/bsddb/read.py +++ b/gramps/plugins/db/bsddb/read.py @@ -967,8 +967,10 @@ class DbBsddbRead(DbReadBase, Callback): else: key = surname name_group = self.name_group.get(key, surname) - if name_group: + if isinstance(name_group, bytes): return name_group.decode("utf-8") + else: + return name_group def get_name_group_keys(self): """