From 0170e2b1e63431f88317f3584a2c6079842fbc34 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Wed, 5 Apr 2023 18:41:27 +0200 Subject: [PATCH] Crash when invalid event date --- gramps/gui/views/treemodels/eventmodel.py | 2 ++ 1 file changed, 2 insertions(+) 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: