diff --git a/gramps/plugins/lib/libsubstkeyword.py b/gramps/plugins/lib/libsubstkeyword.py index c172f1ade..a38a579e2 100644 --- a/gramps/plugins/lib/libsubstkeyword.py +++ b/gramps/plugins/lib/libsubstkeyword.py @@ -828,7 +828,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