Crash when invalid event date

This commit is contained in:
SNoiraud 2023-04-05 18:41:27 +02:00
parent 54799df049
commit 0170e2b1e6

View File

@ -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: