diff --git a/gramps/plugins/lib/libsubstkeyword.py b/gramps/plugins/lib/libsubstkeyword.py index aaac5b159..457169a79 100644 --- a/gramps/plugins/lib/libsubstkeyword.py +++ b/gramps/plugins/lib/libsubstkeyword.py @@ -741,7 +741,7 @@ class VariableParse(object): if not e_ref: continue event = self.friend.database.get_event_from_handle(e_ref.ref) - if event.get_type().is_type(event_name): + if str(event.get_type()) == event_name: return event return None