diff --git a/src/gen/db/base.py b/src/gen/db/base.py index 298437cb7..17b84479f 100644 --- a/src/gen/db/base.py +++ b/src/gen/db/base.py @@ -1283,7 +1283,7 @@ class GrampsDbBase(Callback): """ Return if a key exists in the name_group table. """ - return str(name) in self.name_group + return self.name_group.has_key(str(name)) def set_name_group_mapping(self, name, group): """