diff --git a/gramps/gui/views/treemodels/eventmodel.py b/gramps/gui/views/treemodels/eventmodel.py index bdd1c57e5..a6c0a7849 100644 --- a/gramps/gui/views/treemodels/eventmodel.py +++ b/gramps/gui/views/treemodels/eventmodel.py @@ -160,6 +160,8 @@ class EventModel(FlatBaseModel): date_str = get_date(event) if date_str != "": retval = escape(date_str) + else: + retval = "" if not get_date_valid(event): return INVALID_DATE_FORMAT % retval else: